[Opensource] Tiles and states

Michael Rimov rimovm at centercomp.com
Fri Nov 1 10:54:19 PST 2002


At 12:06 PM 11/1/2002 +0100, you wrote:
>Hi there,
>
>a few weeks ago I had the problem trying to display two states on one 
>page. In particular, my dynamic menu generated from a database and in the 
>body the active menuitem wich content comes also from a database. Someone 
>suggested to use tiles for this problem so I read about it and integrated 
>in into my project.  But still, it doesn't work for some reason. In my 
>actionmapping I had a menu.do and a "dier.do". But when I want to display 
>something and I use the tiles:put attribute tag to display both states on 
>the same page it says something like: "response has already been send". My 
>quick and dirty solution for this was adding the menu to my response in 
>every state so I could display the menu also.

Marcel,
You're right in that you shouldn't have to put the menu into each 
reponse.  That defeats the tiles purpose.  For my own project that uses 
tiles, in my tiles:put tag, I had the page be:
                         /menu.do?state=<blah>

Perhaps explicitly putting the state in would help??

                                                 -Mike







More information about the Opensource mailing list