Project Documentation

Description

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

API

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.

Usage

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

Instructions

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.