2012-06-04 54 views
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> 

回答