There are a few other options.

1. <display:column property="getter", list="iterator/collection" />
where property points to a property of obects in the list. The drawback
is that property gets redefined; instead of a property of the parent
table, it becomes a property of the objects in the list. Not high on my
list.

2. Create a new tag <display:list ... /> with basically the same
attributes as <display:column>

3. Just do it as suggested with jstl or struts-iterate and forget about
additional complexity.

Brad


On Sun, 2003-11-09 at 17:28, John York wrote:
> Sounds useful, but can't you accomplish it in about 3-4 lines with a 
> standard struts-iterate or jstl loop tag? If we did decide to implement 
> this, I think it ought to be part of the formatting library we are 
> discussing.
> 
> Something like:
> <display:column...>
>   <display:format type="list" property="collection">
>     ...
>   </display:format>
> </display:column>
> 
> Although, this still takes the same amount of code as a standard jstl 
> iterate would. So it doesn't seem you'd really gain anything. Maybe the 
> solution would be to specify this 'list' decorator as a decorator within 
> the column tag? This would require us to keep column decorators as part of 
> the displaytag.
> 

> > 
-- 
Brad Smith <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to