开发者

List Iterate in paragraph form in JSF page

I want to iterate list in paragraph form in JSF p开发者_运维技巧age...

for E.g.

I have list and i want to iterate it's value as

like

list<String>={'test1','test2','test3'}

I want JSF output as

test1:..test2:...test3...

how to achieve this ?


Hope this is helpful.

<html xmlns:ui="http://java.sun.com/jsf/facelets"> 

<ui:repeat var="test" value="#{someClass.methodThatReturnList}">
   #{test}:
</ui:repeat>


JSF way is h:dataTable but since you want it just to be displayed in one line you can go with JSTL

<c:forEach items="${yourBean.youeLIst}" var="para">
        <c:out value="${para}"/>
</c:forEach>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜