我有复合成分DocumentSelector
,其中包含另一个复合材料部件modalWindow
。
<cc:interface componentType="selector.DocumentSelector">
<cc:attribute name="showSelector"
method-signature="void listener(java.util.List)"/>
</cc:interface>
<cc:implementation>
<div id="#{cc.clientId}">
<ccs:modalWindow id="modal_window" showListener="#{cc.showSelector}"
mode="ajax">
</ccs:modalWindow>
</div>
</cc:implementation>
我需要方法通过#{cc.showSelector}
到复合部件modalWindow
从面孔部件DocumentSelector
。 但我有PropertyNotFoundException
因为ElResolver
副#{cc}
与modalWindow
组件,而不是DocumentSelector
modalWindow组件:
<cc:interface componentType="statistics.ModalWindow">
<cc:attribute name="showListener" method-signature="void show()"/>
<cc:attribute name="hideListener" method-signature="void hide()"/>
</cc:interface>
<cc:implementation>
</cc:implementation>
我使用Java EE 7,JSF 2.2,WildFly 8.2.0