Hello, thanks for your answer!
I have my decorator and I have my getValues() method as part of that
decorator. The fact is: if 'values' is a List I will iterate it till I get
the value I'm interested in... but to get that value I need the column name,
how do I get the column name in the decorator? Remember that I don't know
whats in that list so I cant have a getter for some property I dont know...


2009/11/23 Paslaru Narcis <paslaru.nar...@gmail.com>

> Hello,
>
> You should create your own decorator to do everything that you need.
>
> Cheers,
> Narcis
>
> 2009/11/22 Pablo Fernández <pablodelacruzfernan...@gmail.com>
>
>> Hello I'm trying to display a table with dynamic columns.
>> I'm working with a list of objects wich have a List as an attribute. The
>> user selects 2 properties from that list and I have to render them as
>> columns.
>> I'm working with Struts2 and I solved the columns in the jsp with
>> something like:
>>
>>                 <s:iterator value="#attr.columns" var="column">
>>                       <display:column property="${column.property}"
>> title="${column.title}" sortable="${column.sortable}" />
>>                 </s:iterator>
>>
>> attr.columns is a sublist with the 2 properties selected by the user. This
>> renders the columns fine but now I need to fill them with the values!!!
>> I cant get to do that because the decorator needs the property name to get
>> the value and my property is a List. Lets say the list is named 'values' in
>> my object, so
>> I tried with a getValues() method in my decorator but once in the
>> decorator I dont know how to associate the column name with the value I need
>> from the list...
>>
>>
>> Any ideas?
>> Thanks in advance!
>> pol
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> displaytag-user mailing list
>> displaytag-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>>
>>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> displaytag-user mailing list
> displaytag-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to