<h:dataTable value="#{SearchingBeans.list}" var="entry">
<h:column>
<f:facet name="header">
<h:outputLabel>Photo</h:outputLabel>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel>Pseudo</h:outputLabel>
</f:facet>
<h:outputLabel value="#{entry.pseudo}"></h:outputLabel>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel>Description</h:outputLabel>
</f:facet>
<h:outputLabel value="#{entry.description}"></h:outputLabel>
</h:column>
<h:column>
<f:facet name="header">
<h:outputLabel>Photo</h:outputLabel>
</f:facet>
<h:outputLabel value="#{entry.photo[0].path}"></h:outputLabel> <-- this a List
</h:column>
</h:dataTable>
데이터 테이블 내가 그의 재산 중 하나가 GET와 목록의 사진입니다 단체 회원을 가지고/속성 내가 JSF에 그 값을 가져 오는 방법을 모르는 을 채우는 것을 설정 그들의 2-3 사진을 가지고 있기 때문에 나는 각 회원에 대한 첫 사진 만 원한다. 그것 가능한? 다른 해결책은 감사 할 것입니다.으로 반복 :
만약 당신이'list' 타입의'entry.list'를 가지고 있다면, 당신은 그 아이디어를 얻었 으면'empty'로 그 내용을 검사하고'[0]'으로 첫번째 요소에 접근 할 수 있습니다. 정확히. – skuntsel