thanks Antonio!!!

2011/9/6 Antonio Petrelli <[email protected]>

> 2011/9/6 Mohamed Rabie Hayoun Ben Maimoun <[email protected]>
>
> > I am developing a strus2tiles2 aplication i am want to know if there are
> a
> > way to split tiles config file in small files? Now i am using tiles 2.2 i
> > split the file using the parameter-based initialization but that is
> > deprecated.
> >
> > anyone can help me?
> >
>
> Antonio to the rescue! :-D
> Seriously you have two options:
> 1. using the feature complete initilializer, that loads all features of
> Tiles, including Tiles xml autoloading:
>
> http://tiles.apache.org/2.2/framework/tutorial/configuration.html#Ready-made_configuration_classes
>
> If you use it you need to put files with the name "tiles*.xml" under
> WEB-INF
> (or its subdirs) or under META-INF (or subdirs) reachable from the
> classpath.
> Notice that it needs *a lot* of dependencies (Freemarker, Velocity, some
> parts of Spring) so you'd better use Maven and include "tiles-extras".
>
> 2. Create your own initializer and TilesContainerFactory, extending
> BasicTilesContainerFactory.getSourceURLs.
>
> HTH
> Antonio
>



-- 
Mohamed Rabie Hayoun Ben Maimoun

Reply via email to