Re: tiles, conditional choice of

2003-12-29 Thread Brice Ruth
No sweat, Vic :) wrote: Brice Ruth wrote: One recommendation I've received from this list is to have your 'variable' tile be an Action, so that you would have an order of magnitude less tile defs to create ... at least, that's how I understood it :) Sorry about that;-}It's not easy to

Re: tiles, conditional choice of

2003-12-28 Thread Pedro Salgado
On 27/12/2003 20:55, Brady Hegberg [EMAIL PROTECTED] wrote: Of course! I just need to forward to the def that corresponds to the user's settings. Very simple and elegant. However, theoretically, what if I had three tiles in a definition, each of which could get any one of the same 10

Re: tiles, conditional choice of

2003-12-27 Thread Mark Lowe
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.

Re: tiles, conditional choice of

2003-12-27 Thread Brady Hegberg
Of course! I just need to forward to the def that corresponds to the user's settings. Very simple and elegant. However, theoretically, what if I had three tiles in a definition, each of which could get any one of the same 10 different values. In that case I'd need to create 1000 definitions in

Re: tiles, conditional choice of

2003-12-27 Thread Brice Ruth
One recommendation I've received from this list is to have your 'variable' tile be an Action, so that you would have an order of magnitude less tile defs to create ... at least, that's how I understood it :) Brady Hegberg wrote: Of course! I just need to forward to the def that corresponds

Re: tiles, conditional choice of

2003-12-27 Thread Mark Lowe
You could over load on the insert tiles:insert attribute=example.page tiles:put name=body value=%= body % / /titles:insert or do it a specialized action. There are plenty of options although I have trouble thinking of many scenarios where having 1000 different definitions would be

Re: tiles, conditional choice of

2003-12-27 Thread ....
Brice Ruth wrote: One recommendation I've received from this list is to have your 'variable' tile be an Action, so that you would have an order of magnitude less tile defs to create ... at least, that's how I understood it :) Sorry about that;-}It's not easy to explain on the list. Now there

tiles, conditional choice of

2003-12-26 Thread Brady Hegberg
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/