Skip to main content

JSF 2.0: Is "class" prohibited as cc attribute name? (and spec typos)

3 replies [Last post]
martyhall
Offline
Joined: 2009-08-19

In a composite component, is it illegal to say

<composite:attribute name="class"/> ?

If so, where in the docs does it say so? In https://javaserverfaces.dev.java.net/nonav/docs/2.0/pdldocs/facelets/com... it says that binding, id, inView, parent, rendered, rendererType, and transient are proscribed. I can find no such prohibition there for "class", but using "class" results in "Setter not found for property class" (Mojarra 2.0.2 FCS).

Also, there are two minor typos in the "Description" cell of "name" on that page. First, it says method-sigature instead of method-signature. Second, the double quotes before "actionListener" are facing the wrong direction.

Finally, I can see no text on that page that says whether the default value of "required" is true or false.

Cheers-

- Marty
JSF 2.0 Training Course: http://courses.coreservlets.com/public-courses/jsf2/

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rogerk
Offline
Joined: 2004-05-06

Yes.

rogerk
Offline
Joined: 2004-05-06

I'm thinking we "class" should not be allowed in this context. I think we should add it to the docs in the "not allowed" list. I've fixed the typos so the next time REV A docs are generated, those will be fixed. I'll add it to the change log for tracking purposes.

Thanks, Roger.

martyhall
Offline
Joined: 2009-08-19

Thanks, Roger. Did you also add a comment that the default value of "required" is false?

Cheers-
- Marty

JSF 2.0 Tutorial: http://www.coreservlets.com/JSF-Tutorial/jsf2/