You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2005/08/28 22:14:30 UTC
[Myfaces Wiki] Update of "AliasBean" by WernerPunz
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by WernerPunz:
http://wiki.apache.org/myfaces/AliasBean
The comment on the change is:
changed the scope definition ot the current tomahawk tld entry
------------------------------------------------------------------------------
In MyFaces 1.0.9 combining alias beans only works by nesting them, this restriction might be removed
in later incarnations of MyFaces.
- In the current nightly build, this is done by <t:aliasScope>. <t:aliasBean> tags inside an alias scope define an alias in the scope of that tag, not in themselves. This can be used if the content has more then 1 variable:
+ In the current nightly build, this is done by <t:aliasBeansScope>. <t:aliasBean> tags inside an alias scope define an alias in the scope of that tag, not in themselves. This can be used if the content has more then 1 variable:
{{{
... main form using the alias bean
- <x:aliasScope>
+ <x:aliasBeansScope>
<x:aliasBean alias="#{holderA}" value="#{databean1A}" />
<x:aliasBean alias="#{holderB}" value="#{databean1B}" />
<x:aliasBean alias="#{holderC}" value="#{databean1C}" />
<f:subView>
<jsp:include page="subpage.jsp"/>
</f:subView>
- </x:aliasScope>
+ </x:aliasBeansScope>
- <x:aliasScope>
+ <x:aliasBeansScope>
<x:aliasBean alias="#{holderA}" value="#{databean2A}" />
<x:aliasBean alias="#{holderB}" value="#{databean2B}" />
<x:aliasBean alias="#{holderC}" value="#{databean2C}" />
<f:subView>
<jsp:include page="subpage.jsp"/>
</f:subView>
- </x:aliasScope>
+ </x:aliasBeansScope>
- <x:aliasScope>
+ <x:aliasBeansScope>
<x:aliasBean alias="#{holderA}" value="#{databean3A}" />
<x:aliasBean alias="#{holderB}" value="#{databean3B}" />
<x:aliasBean alias="#{holderC}" value="#{databean3C}" />
<f:subView>
<jsp:include page="subpage.jsp"/>
</f:subView>
- </x:aliasScope>
+ </x:aliasBeansScope>
}}}