Jsf 2 f:复合部件的参数
在JSF2.1复合组件中,如果我们试图将f:param传递给复合组件(命令按钮),并在组件中作为editableValueHolder接收,那么它似乎不起作用 有什么想法吗Jsf 2 f:复合部件的参数,jsf-2,parameter-passing,facelets,composite-component,Jsf 2,Parameter Passing,Facelets,Composite Component,在JSF2.1复合组件中,如果我们试图将f:param传递给复合组件(命令按钮),并在组件中作为editableValueHolder接收,那么它似乎不起作用 有什么想法吗 <mycomp id="button" outcome="newpage" > <f:param name="foo" outcome="bar" for="button"/> </mycomp> compositeComponent.... <cc:inte
<mycomp id="button" outcome="newpage" >
<f:param name="foo" outcome="bar" for="button"/>
</mycomp>
compositeComponent....
<cc:interface>
<cc:attribute name="action" targets="commandLink" required="true" />
</cc:interface>
<cc:implementation>
<h:commandLink id="commandLink" action="#{cc.attrs.action}">
</h:commandLink>
</cc:implementation>
复合成分。。。。
使用
<h:commandLink ...>
<cc:insertChildren />
</h:commandLink>