Project Documentation

Summary

Tag name: <t:aliasBeansScope>
UIComponent class: org.apache.myfaces.custom.aliasbean.AliasBeansScope
Tag class: org.apache.myfaces.custom.aliasbean.AliasBeansScopeTag
Component type: org.apache.myfaces.AliasBeansScope
Component family: javax.faces.Data

Holds several aliases that are configured by aliasBean tags.

The aliasBean tag must enclose all the components that are within the scope of the alias. When multiple aliasas are defined, this makes the page structure very clumsy; for example defining 5 aliases means the content must be nested 5 indentation levels deep. This tag instead allows the content block to be wrapped in just one AliasBeansScope tag, and then have AliasBean tags with empty bodies added as direct children of this component. The scope of the AliasBean tag still starts when the tag begins, but instead of ending when the tag ends the scope of the nested AliasBean tags extends to the end of this component.

Attributes

Name Type Supports EL? Description
id String Yes An identifier for this particular component instance within a component view.

The id must be unique within the scope of the tag's enclosing NamingContainer (eg h:form or f:subview). The id is not necessarily unique across all components in the current view

This value must be a static value, ie not change over the lifetime of a component. It cannot be defined via an EL expression; only a string is permitted.