를 반복, 난 UI를 가지고 : 즉, 다른 정적 무엇보다도,이 같은 명령 버튼이 반복 : 이제JSF 2 복합 : actionSource은 UI에서이며 commandButtons 노출 : 내 복합 구성 요소에서
<ui:repeat var="article" value="#{cc.attrs.articleList}"> <strong>Aricle: #{article}</strong> <h:commandButton id="addToFavs" value="Subscribe" binding="..." type="..." > <f:setPropertyActionListener value="#{article}" target="..." /> </h:commandButton > </ui:repeat>
를, 나는 내 페이지에서 이벤트 리스너를 연결하고 f : ajax에 연결할 수 있도록 복합 인터페이스에서이 이벤트를 노출하고 싶습니다.
그것이 UI의 외부 있었다면 :<composite:interface> <composite:actionSource name="addToFavs" targets="#{cc.clientId}:addToFavs" /> <composite:clientBehavior name="ajax" default="true" event="action" targets="#{cc.clientId}:addToFavs"/> </composite:interface>
을하지만 아무도이 때문에 즉,이 경우 실패하지 : 반복과 같은, 즉 매우 간단했을 것이다 (즉, 단 하나의 버튼이 존재) 그 ID (addToFavs)에 의해 하나의 구성 요소, 오히려 그들 중 무리. 인터페이스에서이 단추를 어떻게 노출해야합니까? 나는 그것을 달성 할 수 있다면 누군가가 알고 싶어 단지의 경우, 내 추측으로이 게시물을 업데이트
감사합니다,
Pradyumna