2012-06-04 4 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> 

답변

2

<cc:insertChildren>을 사용하십시오.

<h:commandLink ...> 
    <cc:insertChildren /> 
</h:commandLink> 
+0

감사합니다. BalusC,이 시도하고 알려 드리겠습니다. – user684434

관련 문제