Project Documentation


The forceId attribute allows you to set the id of a component to a fixed value. This can be useful if you want to heavily use (or reuse your preexisting) JavaScript libraries or CSS-styles.

Screen Shot

Not available


attribute forceId On all MyFaces extended and custom components (all components in the extended taglib, usually prefixed with an 't') the forceId attribute can be set to true to force the desired id-value.


<(anyCustomComponent) forceId="true" id="yourIdValue"/>


An example:
if you want to use the panelGroup control with a predefined id of "foo", you include the markup <t:panelGroup id="foo" forceId="true"/> into your JSP-file.