0
定制复合部件我有使用Primefaces定制对话框组分:JSF 2与Primefaces
myDialog.xhtml
<!-- INTERFACE -->
<cc:interface>
<cc:attribute name="header" />
<cc:attribute name="id" />
</cc:interface>
<!-- IMPLEMENTATION -->
<cc:implementation>
<p:dialog header="#{cc.attrs.header}"
id="#{cc.attrs.id}" >
</p:dialog>
</cc:implementation>
和我想插入内部myDialog另一个组件,但它不起作用。
example.xhtml
<puc:myDialog header="Hi" id="myDialogId">
**This code doesn't appear. Why?**
<p:dataGrid>
<p:row>
<p:column>
<p:inputText></p:inputText>
</p:column>
</p:row>
</p:dataGrid>
</puc:myDialog>
你究竟在哪里读过关于使用'id =“#{cc.attrs.id}”'废话?这不是我第一次见到JSF初学者使用它的原因不明。所以肯定会有传播这种错误信息的劣质资源。你能指出哪一个是我可以联系它的作者吗? – BalusC