org.apache.myfaces.custom.aliasbean.AliasBean
12/04/2010
span style = 'font-style: italic;'> Original comments tags that we quote here:
The tag aliasBean Allows you to create a temporary name for the actual bean. The temporary name exists (is visible) only to the Children of the aliasBean.
One of this feature use is to pass 'parameters' from an included to an including page one. The included page can use any name it is beans Desires Needs To reference it, including the page and then use Can aliasBean to Make Those names REFER to the beans it wishes to 'pass' the parameters.
Suppose You Have the block of components you use Often But with Different beans. You Can Separate create a JSP page (or equivalent) containing These beans, the value-bindings WHERE TO REFER some fictive bean name. These document the names of the required 'parameters' for this JSP page. Wherever you wish to use this block you then declare an alias mapping each component of These 'parameters' to whatever beans (or literal values) you really want to apply to the block, then use jsp: include (or equivalent) to include the reusable block of components.
Note, However, That AliasBean does not work for component bindings; JSF1.1 just has no mechanism available to set up the alias During the "restore view" phase while the bindings of ITS Being children are re-established, and then remove the alias after the child bindings are done.
As a special case, if this component's direct parent isAliasBeansScope an alias then the (temporary name) is active Until the End of the parent component, rather than the end of this component.
ORIGINAL SOURCE: http://myfaces.apache.org/tomahawk-project/tomahawk/tagdoc/t_aliasBean.html
Topo   Link para este post Comentários
Redação Ige. ( redacao@informativogeral.com.br )
VOTE NO AMARELINHO PARA O TOP BLOG 2010




