In a JSF Page you might want to display all entries of a collection as a comma-separated list (or of course another separator). To do that you can use the JSF <ui:repeat></ui:repeat>
Tag.
This JSF-Tag expects a collection assigned to the value attribute. <ui:repeat>
iterates over the collection and assigns the current item to the variable, which is declared in the var attribute. The variable, assigned in the varStatus attribute has several properties. In the example we need the last
property, which indicates witz a boolean value, wheater this is the last item or not.
Here is an example:
<ui:repeat value="#{myCollectionOfStrings}" var="str" varStatus="status"> #{str}#{status.last?'':', '} </ui:repeat> |
(Visited 2,922 times, 1 visits today)
You appear to be extremely professional in the way you write.
Keep up the wonderful piece of content, I read several
posts on this site and I think that your web blog is truly appealing as well as includes plenty
of superb information.
Pretty! This was a really wonderful post. Thanks for providing this info.
I’m not sure exactly why but this website is loading very slow for me.
Is anyone else having this issue or is it a problem on my
end? I’ll check back later on and see if the problem still exists.