Now that I know they *might* work together, here's the specific issue I'm
having.  I did deploy them together using two sets of everything (XML
configs, JSPs, etc.).  It's working to the point that Tiles 2 finds my Tiles
2 definition and is attempng to render it, however, it's not finding the
definition's attributes in order to insert them.
 
I've following the definition parsing into the Digester, and it's not
assigning the attributes.  I think I have an old Digester version.  Is there
a minimum version required for Tiles 2?  I didn't see it mentioned anywhere.
 
BTW, another aspect of configuration is that I've co-deployed Struts 1 and
Struts 2, and I'm using Struts 2.0.6 with the version of Tiles 2 that is
distributed with it.
 
Thanks for the help and the correct information on the users list.
 
-- David
 

-----Original Message-----
From: Greg Reddin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 01, 2007 12:51 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: Re: Struts Tiles and Tiles 2 compatibility




On 5/1/07, David Chisholm <[EMAIL PROTECTED]> wrote: 


Can Struts Tiles and Tiles 2 co-exist in the same web app?  I have a large
project using Struts Tiles and would like to run both as I migrate it to
Tiles 2.


Yes and no. The API for Tiles 2 is drastically different from Struts Tiles
so the two frameworks require separate XML files, separate configuration
elements, and separate JSP pages. I don't think it will work to "merge" the
two ( i.e. you probably can't just include Tiles 2 elements from Struts
Tiles pages, etc.). The JAR files should be compatible but I'm not real sure
how they will behave if co-deployed.

We do have a task on the list to build a Struts-Tiles compatibility layer
that would allow you to reuse Struts-Tiles pages and XML files with Tiles 2,
but I have no idea when such a library will be available. (If you have ideas
we'd gladly accept patches :-) 



PS - I would have posted this to the user list, but it's not accepting
subscriptions.


Wow, I just noticed that the website links to "tiles-user" instead of
"tiles-users".  To subscribe to "users" please send a mail to
[EMAIL PROTECTED] I'll try to get the site fixed.

Thanks,
Greg



Reply via email to