It is getting more complicated than I initially thought.

I created some replacement classes:

1)
public class CustomSpringTilesConfigurer implements ServletContextAware,
InitializingBean, DisposableBean

2)
public class CustomTilesContainerFactory extends BasicTilesContainerFactory

where I can see the whole initialisation process (application startup) for
each Tiles' definition file. However I don't know which way to go next, and
before I gave up... I'll ask the last question. Having ServletContext,
TilesApplicationContext, TilesContainer, etc. - all initialised, is it
possible to inject additional definitions?

Thanks

Daniel Stefaniuk

On 24 January 2011 11:39, Antonio Petrelli <[email protected]>wrote:

> 2011/1/24 Daniel Stefaniuk <[email protected]>:
> > I looked at the 'Defining Multiple Containers' in the documentation.
> Thanks,
> > Antonio. However, I'm not sure how can I use it. Do I have to create a
> > listener for each configuration file?
>
> i can speak only of a "clean" Tiles way without Spring, sorry.
> Anyway, you can use more than one lister, or the modular
> initializer/listener together with one initializer for each section:
> http://tiles.apache.org/framework/tutorial/configuration.html
> (look at Modular Initialization at the end of the page).
>
> > Then, how will I link it with an XML
> > file?
>
> You must use the pure Java configuration, create your
> TilesContainerFactory to specify the URLs you want.
>
> > Is there any real-world example on the web of this?
>
> AFAIK, only the test webapp has a modular initialization.
>
> Anyway, try to search in Spring docs (or source), probably there is a
> way to use a configurer to initialize a non-default container.
>
> Antonio
>

Reply via email to