Hi,


The tiles:insert tag don't check if the attribute is a list because element of the list can be of several kind (def name, URL, Item, custom bean, ...). Doing an insert on a attribute of type list doesn't means that you want to insert each element of the list. Maybe you simply want to display the element.
Take for example the menu layout. It requires as input a list of "Item". One can customized the "Item": how the insert tag can take into account such customization ?
In the current proposal, the insert tag just pass the list as is, and let the programmer play with the list according to what have been pushed in the list.


Cedric

Jacob Hookom wrote:

I was wondering if I missed something in the documentation pertaining to
displaying lists of includes without using scriptlets.

The tiles example war uses putLists to describe menus, but then uses a
scriptlet with an Iterator to actually display them.  Why doesn't the
tiles:insert tag know if it's a list and iterate over the results to display
them-- again, I may have completely missed it in the documentation?

Best Regards,
Jacob Hookom


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






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



Reply via email to