Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1339

tabChangeListener: only literal strings supported in "type" attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.7
    • 1.1.8
    • Tabbed Pane
    • None

    Description

      The "type" attribute of t:tabChangeListener is the name of a java class. It is intended to support either literal classnames or an EL expression that resolves to a String that is the name of a class.

      However due to a tiny bug in class TabChangeListenerTagHandler, the type attribute is always treated as a literal string. EL expressions therefore cause a "ClassNotFound: #

      {.....}

      " type message.

      Line "if (!typeAttribute.isLiteral())" should not have that logical negation there. The same error is present on the myfaces wiki page for tomahawk+facelets, where this code presumably came from.

      Attachments

        Activity

          People

            skitching Simon Kitching
            skitching Simon Kitching
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: