struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <>
Subject Re: tiles, conditional choice of
Date Sat, 27 Dec 2003 14:51:13 GMT
There are a number of options available here, i'd have a different def 
that extends showList , I'd call this base.list and then have different 
defs per list.

name="user.list" extends="base.list"

in fact i assumed you'd only have to over load body, you could even 
have a def as the value of body.

On 27 Dec 2003, at 06:12, Brady Hegberg wrote:

> I've been trying to find the best way to handle a situation where you
> have various formats for a tile and the tile appearance is chosen at
> run-time.
> <definition name="showList" extends="mainLayout">
>   <put name="header" value="/header.jsp"/>
>   <put name="body" value="/????"/>
>   <put name="footer" value="/footer.jsp"/>
> </definition>
> And I have content1.jsp, content2.jsp and content3.jsp which can be
> loaded into the page
> Should I:
> 1.  Have a single tile with choose statements to determine the format.
> 2.  Have a single master tile which chooses between various tiles and
> loads the selected one?  (If possible?)
> 3.  Have a ClassController or TilesAction class which changes the tile
> object and loads the chosen tile into the tile object before displaying
> it.  (If so how is this done?  Any examples available?)
> I found a couple similar references in the archives but no definitive
> answer.
> Thanks,
> Brady
> PS:  It would be cool if you could create an action for a tile and then
> do an actionForward which returns the chosen tile into the correct spot
> on the calling page but I don't believe this is possible.  At least 
> I've
> never seen anything that indicated it could be done.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message