Hi.
We have a normal Role entity associated with @UserRole
When we are iterating over the roles and printing them out, they print out with brackets like this:
[admin, user] even though we have not specified it using brackets.
Does anyone know how I can iterate over the roles and printing them without brackets?
This is the code:
<h:column> <f:facet name="header"> <h:outputText value="#{messages['roles']}" /> </f:facet> <a:repeat var="role" value="#{existingUser.roles}"> <h:outputText value="#{role}" /> </a:repeat> </h:column>
I have even tried to override the toString on Role, but that doesnt help. The brackets always seem to appear.
Roles was a Set. Changed it to List, and it worked.