You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Antonio Petrelli <ap...@apache.org> on 2006/12/14 19:17:53 UTC

[tiles2] Multiple container/definitions factory support

Hi!
Currently I am in the process of creating Struts 1 - Tiles 2 
integration: so I noticed that, for each Struts module, you could define 
a different DefinitionsFactory.
I think that Tiles 2 cannot do it right now (correct me if I am wrong). 
I think that the support to multiple DefinitionsFactory should be 
provided (that contradicts what I wrote some time ago), but I don't know 
if the "multiplicity" should be provided at container-level or at 
DefinitionsFactory-level.

Thoughts?
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [tiles2] Multiple container/definitions factory support

Posted by "David H. DeWolf" <dd...@apache.org>.
  . . .I was going to suggest the same thing, but you beat me to it :)

I think you may come into some problems because of how we use 
TilesAccess internally. This class should be a helpful utility for 
external applications, but not used by the guts of tiles (tags for 
instance).  My guess is that as you move forward, you'll find a need to 
refactor these places.



Antonio Petrelli wrote:
> Antonio Petrelli ha scritto:
>> I think that the support to multiple DefinitionsFactory should be 
>> provided (that contradicts what I wrote some time ago), but I don't 
>> know if the "multiplicity" should be provided at container-level or at 
>> DefinitionsFactory-level.
> 
> I think I answered myself. I am going to create a new TilesContainer 
> (probably extending BasicTilesContainer), and a TilesContainerFactory 
> (probably extending BasicTilesContainerFactory) to allow the creation of 
> more than one DefinitionsFactory, associating each one to a "key", where 
> the key will be the name of the Struts module.
> 
> Ciao
> Antonio
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [tiles2] Multiple container/definitions factory support

Posted by Greg Reddin <gr...@apache.org>.
On Dec 15, 2006, at 11:43 AM, Antonio Petrelli wrote:

> Antonio Petrelli ha scritto:
>> I think that the support to multiple DefinitionsFactory should be  
>> provided (that contradicts what I wrote some time ago), but I  
>> don't know if the "multiplicity" should be provided at container- 
>> level or at DefinitionsFactory-level.
>
> I think I answered myself. I am going to create a new  
> TilesContainer (probably extending BasicTilesContainer), and a  
> TilesContainerFactory (probably extending  
> BasicTilesContainerFactory) to allow the creation of more than one  
> DefinitionsFactory, associating each one to a "key", where the key  
> will be the name of the Struts module.

Sounds good to me :-)

Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [tiles2] Multiple container/definitions factory support

Posted by Antonio Petrelli <ap...@apache.org>.
Antonio Petrelli ha scritto:
> I think that the support to multiple DefinitionsFactory should be 
> provided (that contradicts what I wrote some time ago), but I don't 
> know if the "multiplicity" should be provided at container-level or at 
> DefinitionsFactory-level.

I think I answered myself. I am going to create a new TilesContainer 
(probably extending BasicTilesContainer), and a TilesContainerFactory 
(probably extending BasicTilesContainerFactory) to allow the creation of 
more than one DefinitionsFactory, associating each one to a "key", where 
the key will be the name of the Struts module.

Ciao
Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org