Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-381

JSF 1.2: EL binding to null Strings show up as empty strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-incubating-core-SNAPSHOT
    • None
    • None

    Description

      Take:

      <tr:outputText value="foo" styleClass="#

      {notthere}

      " shortDesc="#

      {nowway}

      "/>

      Prior to 1.2, this generated no "class" or "title" attribute, because these EL
      bindings return null.

      Now, in 1.2, these being strings, we tell the JSP system that these are deferred-values
      of type java.lang.String. And, the silly coercion rules then convert every null to
      "".

      So, we get:

      <span title="" class="">foo</span>

      Attachments

        Activity

          People

            adamwiner Adam Winer
            adamwiner Adam Winer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: