Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3996

Value of HTML-Attribute class on Passthrough element is casted to java.lang.Class if coming from EL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.8
    • 2.2.9
    • None
    • None
    • Apache TomEE 1.7.1, Linux

    Description

      In my XHTML-Facelets I use Passthrough-Elements whereever possible. Now I ran into a bug (IMHO) with the HTML-Class-Attribute:

      <a jsf:outcome="other.xhtml" class="#

      {bean.somebool?'active':''}

      ">Linktext</a>

      gives

      javax.el.ELException - Cannot convert active of type class java.lang.String to class java.lang.Class
      at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:419)

      Changing the attribute name to jsf:styleClass works.

      Changing the content of class to some static string works.

      Might be related to MYFACES-3874.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              softmetz Christian Kalkhoff
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: