1 Reply Latest reply on Aug 25, 2009 1:09 PM by Shervin Asgari

    Removing brackets on UserRole

    Shervin Asgari Master


      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:

      <f:facet name="header">
              <h:outputText value="#{messages['roles']}" />
      <a:repeat var="role" value="#{existingUser.roles}">
           <h:outputText value="#{role}" /> 

      I have even tried to override the toString on Role, but that doesnt help. The brackets always seem to appear.