2
在JSF2.1複合組件中,如果我們嘗試將f:param傳遞給複合組件(命令按鈕)並在組件中接收爲editableValueHolder,它似乎不工作,f:參數複合組件
任何想法?
<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>
謝謝BalusC,我會試試這個,讓你知道...... – user684434