DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12170>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12170

Added functionality when extending another definition

           Summary: Added functionality when extending another definition
           Product: Struts
           Version: 1.1 Beta 2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Tiles framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have run into a problem that could be solved with a minor tweak to 
the "extends" paradigm.  I have a component that creats a breadcrumb trail 
across the top of the page like:  Home -> User Managment -> New User.  I've 
implemented this using putList but what I'd like to happen is that when I 
create a definition that extends the list, I'd like the new items to be 
appeneded to the list insteaad of replacing them:

    <definition name="homeBreadCrumbDef" path="/breadCrumbsLayout.jsp">
        <putList name="items">
            <item   value="Home"
                    link="/rep/do/home"
                    classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
        </putList>
     </definition>

    <definition name="repBreadCrumbDef" extends="homeBreadCrumbDef">
        <putList name="items">
            <item   value="User Management"
                    link="/rep/do/user"
                    classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
        </putList>
    </definition>

In this case, "items" in repBreadCrumbDef replace "items" in homeBreadCrumbDef 
but I'd like it to append to it so both "Home" and "User Management" are in 
the "items" list.  This could probably be implemented with an attribute of 
putList (continue="true") or the likes.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to