|
|
Switching Themes/Layouts within Tiles
Hello,
I want to have to different layouts to be used with my Spring Roo project.
Therefore I added my new layout to the quot;layouts.xmlquot; generated by Spring Roo.
In the next step I created the layout within the quot;layoutsquot; Folder.
But how can I tell Spring roo to switch the layout of my pages ?
I am looking for something like a GET parameter in order to switch the layout during runtime ...
I found the quot;themesquot; coming from Spring Roo but they don't seem to be conntected to Tiles , arent they ? (e.g. /?theme=alt)
Ok ... I would have to create a new View ...
lt;definition extends=quot;defaultquot; name=quot;objects/filterquot;gt; lt;put-attribute name=quot;bodyquot; value=quot;/WEB-INF/views/objects/filter.jspxquot;/gt;
lt;/definitiongt;Like this :
lt;definition extends=quot;popupquot; name=quot;popup/objects/filterquot;gt; lt;put-attribute name=quot;bodyquot; value=quot;/WEB-INF/views/objects/filter.jspxquot;/gt;
lt;/definitiongt;
and a new controller / @RequestMapping wich returns
quot;popup/objects/filterquot;
There isn't another way, isn't it ? |
|