Greg Reddin ha scritto:
On Oct 11, 2006, at 1:12 PM, David H. DeWolf wrote:
I'd like to implement the ability to load tiles definitions from the
classpath in addition to from the servlet/portlet context. I'm
curious about implementation choices:
1) Add the support to the current ServletTilesContext and
PortletTilesContext through a standard base class and/or
ResourceLoader. This is probably the way to go if class loader
loading of definitions will be considered a standard feature. It
would be my first choice.
I like the idea but I think you're on the wrong track to look at
TilesContext. TilesContext is just a generic interface for storing
information about the context in which Tiles is running. Some type of
web context is assumed.
You know Greg, some ideas come at night! I think that the particular
case of David CAN be resolved using a different TilesContext, at least a
TilesContext that returns a different URL when calling to getResource.
To accomplish it, TilesContextFactory needs to be a configurable regular
class, and I opened an issue for this problem:
http://issues.apache.org/struts/browse/SB-44
Just my 2 eurocents
Ciao
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]