jsf 2.2 - Filtering children in a composite component -
when writing composite component, there way insert subset of component's children? <cc:insertchildren/>
inserts children - if wanted insert, say, children <myns:specialcompositesubtag .../>
tags @ specific point , others @ other point? like:
<composite:implementation> <h:outputlabel value="my special composite sub tags:" /> <composite:insertchildren condition="#{type == myns:specialcompositesubtag}" /> <h:outputlabel value="all other child tags:" /> <composite:insertchildren condition="#{type != myns:specialcompositesubtag}" /> </composite:implementation>
is possible? if not, alternative solution?
Comments
Post a Comment