You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/11/07 19:08:40 UTC
DO NOT REPLY [Bug 36124] -
[tiles] Attributes in ComponentContext set via Controller not availiabe in JSP
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36124>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=36124
------- Additional Comments From niallp@apache.org 2005-11-07 19:08 -------
I believe this isn't a bug, and should be marked INVALID.
Your "bookingPage" definition is using (via inheritance) the template "/WEB-
INF/jsp/shared/template.jsp" and tiles makes the attributes defined
in "bookingPage" available to that template. So your "userHelp" attribute is
available to "WEB-INF/jsp/shared/template.jsp" and any changes to the value of
that attribute made in your controller will be available to that template.
Your jsp "/WEB-INF/jsp/booking/bookingdata.jsp" is just another attribute of
the "bookingPage" definition. If it happens to also be a tiles template, it has
no access to the attributes defined for the "bookingPage" definition. Tiles
specifically isolates different "tiles" so that attribute name conflicts don't
occur.
In order for this to work how you want, I believe you need to have an
additional definition for your booking data, that uses the "bookingdata.jsp" as
a template an inserts the userHelp attribute. For example...
<definition name="bookingPage" extends="booking-temp">
<put name="content" value="bookingData"/>
<put name="help" value="booking.html"/>
<put name="title" value="DISPOFLEET- Buchungsseite"/>
</definition>
<definition name="bookingData"
path="/WEB-INF/jsp/booking/bookingdata.jsp">
controllerClass="de.quipus.flint.webapp.booking.BookingTilesController">
<put name="userHelp" value="/WEB-INF/jsp/shared/emptyHelp.jsp"/>
</definition>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org