2 Replies Latest reply on Dec 11, 2008 6:20 AM by Nicole Schweighardt

    Facelets EL && operator

    Nicole Schweighardt Novice

      Hi,

      I have got a question about The $$ operator. Is it not possible to use it in the rendered-attribut?
      I thought it is possible to use it like this:

      <h:commandlink... rendered="#{!userBean.student&&!userBean.admin}">


      but I get the following exception
      com.sun.facelets.FaceletException: Error Parsing /app/course/show_courses.xhtml: Error Traced[line: 67] The entity name must immediately follow the '&' in the entity reference.


      If I type:
      rendered="#{!userBean.student&&!userBean.admin}">


      it works (now it is valid xml) but is that the only way to do that (with facelets)?

      Thanks for you answers.
      nicki