Tiles: Passing a bean to tiles in a definition file

2006-07-05 Thread Dan Langer
When invoking a tile through a JSP, one can do a to bring a bean named gridC into the tile (under the name headerInfo), where said bean was defined elsewhere (with a request.setAttribute("gridC",grid). How do you do this when you're using tile definitions (centralized into one file)? This

RE: Tiles: Passing a bean to tiles in a definition file

2006-07-06 Thread Dan Langer
Antonio, Thanks for the suggestion. From a design POV, it seems odd that a piece of functionality (the beanName attribute) would be there when invoked one way (JSP), but not when invoked another (XML definition). Regardless of that, I'm curious about the suggestion you've made. My goal was to cre

RE: Tiles: Passing a bean to tiles in a definition file

2006-07-06 Thread Dan Langer
Perhaps 'bean' is too strong a word - they'd be lists of lists, with the idea that the table can be generated using several logic:iterate tags, to maximize reusability. The data itself would be packaged into this "format" in the controller, so that it could be used with this table. -Original M

RE: Tiles: Passing a bean to tiles in a definition file

2006-07-07 Thread Dan Langer
-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 tha

RE: bean access in tile def?

2006-07-12 Thread Dan Langer
Justin, I've been working on a similar problem, and based on what I've seen posted here, I don't think it is doable (using definitions). Technically, it seems that in order for what you'd like to do to work, the definitions factory would need to be able to see the scope you're placing that varia

RE: bean access in tile def?

2006-07-12 Thread Dan Langer
What's always got me about this issue is that the following: Use and Set Bean in configuration file It is now possible to use and set beans in the configuration file. Such bean can then be set as a or tag value. This increase and facilitate menu creation. Is listed as 'news' on Cedric's site (h