[ http://jira.codehaus.org/browse/DISPL-200?page=comments#action_31615 ]
     
fabrizio giustina commented on DISPL-200:
-----------------------------------------

It should work, if you add to your table decorator a getAddress() method. The 
getPostalCode() method will be called on the object returned by the decorator. 
Better, you could add a getAddressPostalCode() (or similar) methods to your 
table decorator directly.

> Can't use nested properties in TableDecorator
> ---------------------------------------------
>
>          Key: DISPL-200
>          URL: http://jira.codehaus.org/browse/DISPL-200
>      Project: DisplayTag
>         Type: Bug
>   Components: Decorators
>     Versions: 1.0
>     Reporter: Wayne Gentile

>
>
> I have a table that uses nested properties in the columns:
> <display:table name="customers" decorator="CustomerTableDecorator" 
> id="customer">
>   <display:column property="address.postalCode"/>
> </display:table>
> I want to decorate the column with a TableDecorator, but I cannot specify 
> that the property "postalCode" should be decorated, as the hasGetterFor 
> method of Decorator considers only the "address" part of the property name.  
> Is there a way to do this or would this be an enhancement?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to