2012-08-24 29 views

回答

12

是的,你可以使用UIComponent#getFacets()來得到所有方面名稱的映射。所以你所要做的就是檢查地圖值是否爲空。

<h:panelGroup rendered="#{not empty cc.facets.foo}"> 
    The facet with name "foo" has been definied for this composite! 
</h:panelGroup> 
相關問題