2 Replies Latest reply on Dec 20, 2006 8:11 PM by Danijel Jevtic

    aliases in components.xml on per page basis

    Danijel Jevtic Novice

      Hi, there!

      <components>
      
       <factory name="user" value="#{actor}" scope="STATELESS"/>
      
      </components>

      is a great way to create aliases, but is it possible to do this on a per page basis?
      Meaning, can I have an alias of user being #{actor} on one page, #{father} on another and #{alien} on a third, etc.?

        • 1. Re: aliases in components.xml on per page basis
          Gavin King Master

          No, its not possible, sorry.

          • 2. Re: aliases in components.xml on per page basis
            Danijel Jevtic Novice

            Is anything planned in this direction?
            If not, I would like to open a feature request in Jira, because it is the only thing I can think of to rid myself from the final tomahawk components I use in my seam apps: "AliasBeanScope" and "AliasBean"?
            I have about twenty files which all look like:

            <?xml version="1.0" ?>
            <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:t="http://myfaces.apache.org/tomahawk">
            
             <t:aliasBeansScope>
             <t:aliasBean alias="#{model}" value="#{companyModel}" />
             <t:aliasBean alias="#{handler}" value="#{companyHandler}" />
             <f:subview id="tablesubview">
             <jsp:include page="/tagreuse/fulldynamictable.jspx" />
             </f:subview>
             </t:aliasBeansScope>
            </jsp:root>
            


            Only difference in them is #{companyModel} and #{companyHandler} being different based on the view.