Antonio Petrelli wrote:
Anyway I don't think it is a good way of doing this kind of things. I'd write two definitions (one for create and one for edit) sharing the same layout page
The original method you proposed (two different puts in the same definition) wouldn't work, as it's layout.jsp that writes <title>...</title>, and the edit page that determines what the title should be (and it's "included" via tiles:put). SO I went with the multiple definitions that share the same layout page idea like you suggested :).
Do I need to worry about the order in which tiles attributes are included?
What do you mean here? Each attribute must be assigned when a page is displayed or you'll get an error.
Right... in the tiles documentation (at least, what I could find), it mentions that order is important. So if you have:

layout.jsp
 +-- banner.jsp (displays "myvar")
 +-- content.jsp (sets "myvar")

Then you'd get an error, as myvar probably isn't set when banner.jsp tries to display it.

- Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to