You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Pat <cp...@yahoo.com> on 2008/04/25 23:47:27 UTC

tiles catch-22

Hello
Is it possible to parameterize the <title/> from an "inner tile"?
I have a template that specifies the pagewrapper,banner, menubar, left column.  I want to change the right column content with a jsp fragment and on that fragment create a bean name="titleThis" that has the specific title of page from this fragment.  In my pagewrapper I have a getasstring name=titleThis.  I am creating the page, I know inefficiently, by specifying that the page extends from template and for the right column I am <tiles:put name="rightColumn" value="/pages/frag00.jsp"/>  I am now realizing the reason for the jsp compiler error of "...titleThis...not found" is, I believe, because I am writing it out before I specify it from my fragment.  There must be a way of doing this, which this is not work working and is a 

Re: tiles catch-22

Posted by Antonio Petrelli <an...@gmail.com>.
2008/4/25 Chris Pat <cp...@yahoo.com>:
> Hello
>  Is it possible to parameterize the <title/> from an "inner tile"?
>  I have a template that specifies the pagewrapper,banner, menubar, left column.  I want to change the right column content with a jsp fragment and on that fragment create a bean name="titleThis" that has the specific title of page from this fragment.  In my pagewrapper I have a getasstring name=titleThis.  I am creating the page, I know inefficiently, by specifying that the page extends from template and for the right column I am <tiles:put name="rightColumn" value="/pages/frag00.jsp"/>  I am now realizing the reason for the jsp compiler error of "...titleThis...not found" is, I believe, because I am writing it out before I specify it from my fragment.  There must be a way of doing this, which this is not work working and is a

In Struts-Tiles 1 and Tiles 2.0.x it is not possible to put an
attribute into an inner (nested) template, you need to create a new
definition and put it inside your parent definition as the attribute.
In Tiles 2.1.x (only available in the SVN trunk) you can use the
"cascaded" attributes, i.e. attributes that are available at all inner
levels of nesting.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org