Hi,
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
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
I would like to know if there is any way to use these string operations.
Thanks,
Abhilash