0 Replies Latest reply on Sep 19, 2011 8:16 AM by Abhilash Kollipara

    Using charAt with rendered tag

    Abhilash Kollipara Newbie


      with <h:outputText> rendered attribute, if i am using a String variable i get a list of operations that can be performed on strings, can any one help me out how to use them.


      Eg: <h:outputText value="Panel Header" rendered="#{UserProfiler.privilege.charAt[0]='Y'}"/>


      I get a list of operations similar to charAt - concat, empty, contains so on. I want to use charAt and compare the character to render the field.


      When i am trying to use the above mentioned syntax i get this exception:


      Property 'charAt' not found on type java.lang.String







      I would like to know if there is any way to use these string operations.