2008/11/14 <[EMAIL PROTECTED]>: > Cool! I have no desire to go back to Tiles 2.0, so what changes need to be > made to the S2 plug-in to get the 2.1 chicken-richness? It is creating a > new StrutsTilesContextFactory(contextFactory) now, which is a > StrutsTilesContainerFactory nested class definition. I'm not sure about the > dependencies, but with a little guidance I'd be happy to help with the > coding. I love the features in 2.1 and would really like to see it plugged > in to Struts/2
Struts2/Tiles2 plugin has 3 almost useless wrappers for Tiles 2.1 * StrutsTilesContainerFactory: extends TilesContainerFactory to create a StrutsTilesContextFactory * StrutsTilesContextFactory: implements TilesContextFactory (now deprecated, better use TilesRequestContextFactory) to create StrutsTilesRequestContext * StrutsTilesRequestContext: wraps a TilesRequestContext to add support for FreeMarker result type under Tiles. All this stuff could be removed with the use of the renderer concept: http://tiles.apache.org/framework/tutorial/advanced/attribute-rendering.html There could be a "Struts 2 result renderer" that is able to render an action result, whatever type it is. This renderer will be configured and used in Tiles definition files, specifying the correct "type". This renderer will make useless the classes mentioned above (probably with the exception of the default configuration parameters). Thanks Antonio
