Re: Too many moving parts in Tiles

2006-10-27 Thread Laurie Harper
All I can tell you is I prefer not to have 2-line JSPs, that Tiles+Struts supports putting the equivalent definitions into tiles-defs.xml instead and pointing an action at the appropriate definition, and that I've done it that way in every Struts app I've ever built using Tiles. Here's an exa

Re: Too many moving parts in Tiles

2006-10-26 Thread Antonio Petrelli
Greg Reddin ha scritto: We've had some discussions on the dev list about restructuring the tags in Tiles 2. The problem is that the tag means multiple things. In some cases it means "insert this definition here" (like your example above). Chris, see also this JIRA issue: http://issues.apa

Re: Too many moving parts in Tiles

2006-10-25 Thread Greg Reddin
On Oct 25, 2006, at 6:01 PM, Chris Pratt wrote: Greg, to answer your question, "how do I think this should work?" One improvement I can think of would be to allow this type of construct. In the tiles-defs.xml, specify a definition like: [snip] Then allow inserting, referencing and popu

Re: Too many moving parts in Tiles

2006-10-25 Thread Greg Reddin
On Oct 25, 2006, at 5:04 PM, Laurie Harper wrote: Chris Pratt wrote: Hmmm, I'm not using Tiles alone or Struts 2. I'm using the Tiles integrated into Struts 1.2.9. I've tried using the ForwardAction to forward something like: But it doesn't work, it just returns 404's. You probably

Re: Too many moving parts in Tiles

2006-10-25 Thread Chris Pratt
Greg, to answer your question, "how do I think this should work?" One improvement I can think of would be to allow this type of construct. In the tiles-defs.xml, specify a definition like: http://struts.apache.org/dtds/tiles-config_1_1.dtd";> /** * Pa

Re: Too many moving parts in Tiles

2006-10-25 Thread Chris Pratt
In fact the Apache Tiles Web site example ( http://struts.apache.org/1.x/struts-tiles/examples.html right above the header "Specify Attribute Types") seems to be promoting the two line file as the right way to do things? I'm very confused... Doesn't anyone use Tiles? (*Chris*) On 10/25/06, Chr

Re: Too many moving parts in Tiles

2006-10-25 Thread Chris Pratt
Hmmm, I can't get that working can anyone point me at a working example? All the examples I can find are extremely simple and don't use nested tiles. (*Chris*) On 10/25/06, Laurie Harper <[EMAIL PROTECTED]> wrote: Chris Pratt wrote: > Hmmm, I'm not using Tiles alone or Struts 2. I'm using the

Re: Too many moving parts in Tiles

2006-10-25 Thread Laurie Harper
Chris Pratt wrote: Hmmm, I'm not using Tiles alone or Struts 2. I'm using the Tiles integrated into Struts 1.2.9. I've tried using the ForwardAction to forward something like: But it doesn't work, it just returns 404's. You probably want something like where .tile.name is the name o

Re: Too many moving parts in Tiles

2006-10-24 Thread Chris Pratt
Hmmm, I'm not using Tiles alone or Struts 2. I'm using the Tiles integrated into Struts 1.2.9. I've tried using the ForwardAction to forward something like: But it doesn't work, it just returns 404's. As far as 2 definitions per page, I've been told by others on the list that because you

Re: Too many moving parts in Tiles

2006-10-24 Thread Greg Reddin
On Oct 24, 2006, at 12:20 PM, Chris Pratt wrote: First I have to create an essentially empty file for each page that uses Tiles, something like: <%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles- el"%> First off, I'm assuming you're using Tiles 2? That may affect the