1
본인은 '제목'속성의 값을 삽입 할 필요가 있지만, 그것이 있어야 뭔가처럼 그렇게 궁금 해요 :하나의 ui에서 두 개의 배열을 반복하는 방법 : repeat?
<!-- calling the component -->
<cs:small_slider images="products/eletricity.jpg,products/water.jpg" >
<!-- the component with dynamic rendering -->
<cc:interface>
<cc:attribute name="images" type="java.lang.String" required="true" />
</cc:interface>
<cc:implementation>
<div id="slider-container">
<div id="slider-small">
<ui:repeat value="#{fn:split(cc.attrs.images, ',')}" var="image">
<h:graphicImage library="images" name="#{image}" />
</ui:repeat>
</div>
</div>
</cc:implementation>
:
<ui:repeat //..>
<h:graphicImage library="images" name="#{image}" title="#{title}" />
</ui:repeat>
난 단지 구분하는 쉼표 하나의 문자열을 보낼 수 있습니다
아이디어가 있으십니까?
수 없습니다 UI : ViewScope 콩을 깰 반복? – Dejell
@BalusC, 감사합니다! 그것은 매력처럼 작동합니다 =) –