Greetings all...
We've recently moved to tiles, and are trying to do the following:
- Without using definitions (yet)...
- We have a /tiles/address.jsp tile that we'd like to use within one or more
other tiles (as a sub-tile).
- We have a couple of tile "definitions" (as I said, without actually using
definitions... At the moment, we're really using tiles more like Struts
1.0.x templates) that look something like this:
myPage.jsp (I'm using the same name here, but each one of these files
actually has a different name, and is slightly different):
<tiles:insert page="layouts/classic.jsp" flush="true">
...
<tiles:put name="body" value="/tiles/myPage.jsp"/>
<tiles:put name="address" value="/tiles/address.jsp"/>
...
</tiles:insert>
- What we'd like to do in each /tiles/myPage.jsp (I'm using the same name,
but each file is actually different) is something like this:
<html:form...
Stuff...
<tiles:insert attribute="address"/>
More stuff...
</html:form>
We've been able to do this successfully in the past with Struts templates
(i.e. Using one "top-level definition" file, then inserting "sub-templates"
into specific templates using the definitions in the top-level definition
file), but when we do this with tiles, we get an error telling us that the
address attribute can't be found. I looked through the mailing list
archives, and couldn't find anything that addressed this question, so any
insight would be greatly appreciated.
Do we need to be using definitions to do this?
Thanks in advance...
Dave Bruzzone
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]