you can use <ui:fragment rendered="#{conditional}">
also you could render the 1st item outside the loop, then set the start index to 1 on the loop and then in the loop render the comma first, then the loop item
finaly you can move the code into the
java side and don't loop at all..