Можно ли использовать шаблон с составным компонентом в JSF 2?

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    ...
    template="inputLayout.xhtml">

    <composite:interface>
        <composite:attribute name="name" />
        <composite:attribute name="value" />
    </composite:interface>

    <composite:implementation>
      <!-- <ui:define name="content"> -->
          <h:message for="textPanel" style="color:red;" />
          #{cc.attrs.name} : 
          <h:inputText id="name" value="#{cc.attrs.value}" />
      <!-- <ui:define> -->
    </composite:implementation>
</ui:composition>

Проблема в том, что даже ui:defineзакомментирован, содержимое отображается. Получается, что ui:defineигнорируется, или я что-то упустил? Спасибо.

5
задан BalusC 22 March 2012 в 10:34
поделиться