What I was told was that if you think about the layout file as a method
being called
from the tiles definition, you are sort of calling a sub-method when
you try to get to
another file from inside the layout file, and when you call another
method, if you
want that method to be able to access a variable that is available in
the top level
method, you have to explicitly pass that variable to that sub-method.

With your definition of:

<definition name="tile.1" path="tile-1.jsp">
  <put name="hideButton" value="yes"/>
  <put name="body" value="tile-1-body.jsp"/>
  <put name="nav" value="tile-1-nav.jsp"/>
</definition>


Then, inside "tile-1.jsp", where you have 

        <tiles:get name="nav"/>

instead, put this:

        <tiles:insert name="nav">
            <tiles:put name="hideButton" beanName="hideButton"
beanScope="tile" />
        </tiles:insert>


--
Steve Stair
[EMAIL PROTECTED]


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

Reply via email to