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

August 25, 2006

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.