On Oct 11, 2006, at 2:44 PM, David H. DeWolf wrote:

So are you suggesting that we:

2) Update the UrlDefinitionsFactory to load the resource itself.

3) Create a new ClasspathDefinitionsFactory

Some variation of one of the above. Ideally, we'd like to do it without changing any code :-) My thinking was to see if it could be done by changing TilesListener and/or TilesUtil and keep using the UrlDefinitionsFactory. Barring that, we could implement a ClassloaderDefinitionsFactory that loads from the classpath. The latter has the disadvantage (maybe) of having to choose one or the other. If we take that direction you can't do both servlet context and classpath. If the UrlDefinitionsFactory can be made to work, it would allow you to do both. I'm not sure if that's a good thing or a bad thing. Maybe you should be forced to choose.

Doing #3 above will require a customized TilesListener anyway. I don't see how the same code could be used to invoke both types of DefinitionsFactories. So I'd prefer if it could be done using the current UrlDefinitiionsFactory and modify TilesListener to be able to get URLs from both ServletContext and the Classloader. If that can't be done, then I'd support option 3.

Greg




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to