beehive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Jenkins <>
Subject Re: treeItem remembering expanded state?
Date Sun, 12 Jun 2005 00:08:13 GMT
Nope, it's even when I redirect back from the tree handling method :(

Does anyone know why, when I click the change-password treeItem it
redirects to the appropriate tile, and maintains the tree expanded state
("admin" node stays expanded), but when I click on "home" it
successfully executes the 'default' tile, but collapses the tree?  Does
anyone know a way around this?

Code is below.


My tree code is:

        <netui:treeItem title="home" expanded="false">

            <netui:treeItem title="admin" expanded="false"


My handler method is:

            @Jpf.Forward(name="success", tilesDefinition="default"),
            @Jpf.Forward(name="0", tilesDefinition="default"),
            @Jpf.Forward(name="0.0.0", tilesDefinition="changePassword")
    protected Forward selectTreeElement(){
        return new

Tiles definitions are:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"

<!-- Tiles definition file for NetUI sample.  -->


    <definition name="default" path="/layout/main_layout.jsp">
        <put name="menu"    value="/menu.jsp"/>
        <put name="body"    value="/main.jsp"/>
        <put name="infobox" value="/infobox.jsp"/>

    <definition name="changePassword" extends="default">
        <put name="body" value="/admin/changepassword/main.jsp"/>
        <put name="infobox" value="/admin/changepassword/infobox.jsp"/>

    <definition name="passwordChanged" extends="changePassword">
        <put name="body"


On Sun, 2005-06-12 at 09:57 +1000, Adam Jenkins wrote:
> Clarification:
> I believe the menu only resets when I use the action attribute on
> treeItem, so I think this is probably a knowledge shortfall on my part.
> I'll keep pluggin away at it.
> Cheers
> Adam
> On Sun, 2005-06-12 at 09:45 +1000, Adam Jenkins wrote:
> > Hi All,
> > 
> > I have a tree on one of my tiles and it all works great except for one
> > minor issue.  Whenever I navigate to a new tile, the tree returns to
> > it's original expanded state.
> > 
> > Is there anyway to make tree items remember their expanded state between
> > refreshes?
> > 
> > Cheers
> > Adam
> > 

View raw message