Hi there, I am trying to migrate from tiles to tiles2. I need to have a mutable tiles structure and I was achieving this using a TilesAction class (the definition in the xml file pointed to a struts action on its path. That action decided if changing its mapping depending on the existance of special user handled templates in some dirs). This way I could dynamically change the "template" of that tile.
I am trying to figure how to do this in tiles 2. I can't find that TilesAction class (I guess that's normal as Tiles has been separated from struts) so I am trying to change the template path o a tile using a ViewPreparer. My problem is that in the execute() method in the ViewPreparer I only get TilesRequestContext and AttributeContext objects. I can access to the session, request and attributes in the Tile, but I cannot get information about the tile itself and subsequently change the template path on it. I've read "Runtime Composition using APIs" @ http://tiles.apache.org/framework/tutorial/advanced/runtime.html but I can't figure out how to change definition from within execute method in the ViewPreparer. I really don't need to make any change to the tile's attributes but just optionally changing the tile "template" path attribute to a different JSP file. I'd really thank any directions on this. Thanks a lot. Ignacio -- View this message in context: http://www.nabble.com/Changing-a-tile-%22template%22-path-in-a--ViewPreparer-tp21551618p21551618.html Sent from the tiles users mailing list archive at Nabble.com.
