Skip to main content.

JSP Controls Tag Library

Navigation: JSP Controls | About

Tag <jc:component>

Encloses JSP fragment. During runtime is converted into a <span> HTML element. Value of id attribute of <span> element is build by concatenating the value passed in id attribute of this tag and "_def" suffix, for example:

<jc:component id="LoginComponent"> is trasformed into <span id="LoginComponent_def">.

The name mangling is needed to conform to XHTML specification that does not allow more than one element with the same id attribute. The id of <span> element is correlated in Ajax mode with id of <div> element that encloses <jsp:include> action in the composite page.

Another task of this tag is to set component ID into page context, so other tags inside this component knew the component name.

Tag Information
Tag Classnet.jspcontrols.tags.HandlerTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
Name Required Request-time Type Description
id true true java.lang.String The ID of a component. Must be unique within one composite page, or within a whole application if managed state beans are used. Tabbed Notebook component uses managed state beans internally, so component IDs must be unique within a whole application.