Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.7
-
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.