struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Langer" <dlan...@targetsite.com>
Subject RE: Tiles: Passing a bean to tiles in a definition file
Date Fri, 07 Jul 2006 15:12:55 GMT


-----Original Message-----
From: Antonio Petrelli 

I agree with you, I think that this functionality isn't there for 
technical reasons, simply because Tiles definitions, when they are 
loaded, don't know about page scopes, that is needed to resolve beans.
Why don't you open a bug ticket for that?

>> Will do. Thanks for the technical reasons behind it not working.

In fact, I meant that you would put, for example, your bean in request 
scope from your action class and then read it the usual way (with 
<c:out>, <html:text> etc.).

>> I don't think this will do it, as I'm looking to create a reusable
component that will often be used several times on one page. If I
hardcode the bean name in the component (which I would have to do to get
at it with <c:out>), then I won't be able to have different instances of
the component reading from different beans. 

Thanks,

Dan

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


Mime
View raw message