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:
The primary interfaces for creating Tiles definitions are
org.apache.tiles.DefinitionsFactory and
org.apache.tiles.DefinitionsReader. The DefinitionsFactory is
responsible for storing the sources where definitions come from and
storing definitions. DefinitionsReader is responsible for reading
definition data in a specific format from each source and returning
them as ComponentDefinition objects.
I don't know if it's useful, but I submitted a patch (I don't know if it
applies correctly though) some time ago to enable an easier extension to
Tiles defiinitions factory:
https://issues.apache.org/struts/browse/SB-28
You can check how it is used you can check the CVS repository of
Dimensions, the instructions are in:
http://sourceforge.net/cvs/?group_id=64023
Additionally, what are people's thoughts about wildcard handling for
the resource definitions files. Is this a feature others are
interested in?
This sounds like a good idea also.
That would be cool! Anyway if you want to implement it, beware of locale
handling: what happens when you specify tiles-defs*.xml and you have
tiles-defs_it_IT.xml?
On Oct 11, 2006, at 1:12 PM, David H. DeWolf wrote:
(For those wondering, these features are especially useful when using
freemarker and bundling the ftl templates in different jars).
By the way, is there any code for using Tiles with FreeMarker, such as
special tags?
Ciao
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]