« Tableless web design using Java Server Faces | Main | JSF 1.1 Quirk: Form fields must be defined before field labels »

JSF element ID convention

JSF generates IDs for HTML elements by prepending subview ID's form ID's and such.

If you're using include files, this means the rendered element ID may not be what you expect.

Styles that rely on an element ID may not be applied to these elements, so check your HTML source before you define your ID-based styles. Alternatively, you can define style classes since the styleClass attribute is not modified upon rendering.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)