You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jacob Hookom <ho...@uwec.edu> on 2003/03/30 17:33:52 UTC
[Tiles] putList() Displaying
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [Tiles] putList() Displaying
Posted by Cedric Dumoulin <ce...@apache.org>.
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: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org