Bill Lucy created MYFACES-4003:
----------------------------------
Summary: Allow the "class" Attribute To Be Set For Custom Tags
Key: MYFACES-4003
URL: https://issues.apache.org/jira/browse/MYFACES-4003
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 2.2.8
Environment: Tomcat 8.0.21, MyFaces 2.2.8
Reporter: Bill Lucy
Priority: Minor
For native JSF tags, setting the "class" attribute performs as you'd expect;
however, in user-defined tags, setting the "class" attribute results in the
following exception:
java.lang.IllegalArgumentException: Component property class is not writable
Which is how we've behaved traditionally. Using the "styleClass" attribute
instead does work as expected.
Mojarra supports setting the "class" attribute as of 2.2.9. Additionally, the
same issue was fixed in MYFACES-3874 for jsf:class.
Changing the behavior of MyFaces here - to allow for custom components to
accept the "class" attribute without Exceptions - should be fairly trivial,
along the lines of MYFACES-3874.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)