Ted Husted wrote:
> I think a key question is whether Tiles will still be easy to use
> outside of Struts.
Tiles are not tightly couple with Struts. They should work without. But
combining both bring new and powerful features to Struts and to Tiles.
Furthermore, using tiles with Struts doesn't imply modification in Struts :
actually, you just extends ActionServlet to initialize Tiles, and catch
request forward.
>
>
> I know David would like his Validator to be useful outside the
> framework, and it should be easy for people to get the Validator, or
> Tiles, regardless of whether they use Struts.
That's the way I go. I would like to still have Struts.jar and Tiles.jar
separated.
>
>
> I wonder if we want to turn the contrib area into something more like
> the Commons or Taglibs areas, where the packages would be built
> seperately and available for individual download. Maybe this should be
> an "optional" area instead.
>
>
> Personally, I would like the main struts.jar to be as compact as
> possible, since this needs to be replicated for every Web application on
> a server. If convenient, we could call the optional packages
> struts-validator.jar and struts-tiles.jar, to link them all together,
> but let those that use them (me! me!), include them.
I agree for individual packages. We certainly need to define more precisely
how we will do.
Having a contrib area with individual download and built will help to maintain
Struts and contribs cleanly separated. However, it is often boring to download
each needed library, so may be we will also need a way to download "all in
one".
>
>
> Cedric, I've lost track of the changes you needed to make to enable
> Struts integration with Tiles. Is this anything that could be done with
> Oleg's ServiceManager?
Actually, integration is done by subclassing ActionServlet in order to :
* initialize Tiles
* Catch request forward. For that, I introduce a new method, called by
those performing request.forward()
In the future I will try to use Oleg's ServiceManager. No problem with
initialization, but I have no idea yet for the second point.
>
>
> -Ted.
>
> Cedric Dumoulin wrote:
> >
> > "Components framework" will be renamed "Tiles framework".
> >
> > Integration in Struts is a work in progress. I have already rename
> > packages and updated webapps.
> > I still need to update documentation and tutorial. Checkin will come
> > very soon.
> >
> > Question is : how do we distribute it with Struts ?
> > I can put it in the contrib section, but what about the Struts build
> > process ?
> > Tiles framework originally comes with 4 apps.war. I think to reduce it
> > to 2 apps.war (doc and tutorial).
> > My idea is to integrate build process of these apps.war in the Struts
> > build process (by calling appropriate build.xml in Tiles), and have two
> > new apps.war in the struts dist. Does this sound ok ? Is there any other
> > ideas ?
> >
> > Cedric
> >
> > Tiles sites :
> > http://www.lifl.fr/~dumoulin/tiles/
> > (mirror) : http://www.geocities.com/cedricdumoulin/tiles/