[ http://jira.codehaus.org/browse/DISPL-200?page=all ] fabrizio giustina closed DISPL-200: -----------------------------------
Resolution: Cannot Reproduce Fix Version: 1.0 testcase added for nested properties. using <display:column property="address.postalCode"/> will cause the getAddress() method to be called on your decorator, and getPostalCode() will be called on the returned object, as expected. If you want to change/decorate the value returned by getPostalCode() you could add a new method to the table decorator, for example: public String getAddressPostalCode() { return (Something)getCurrentRowObject()).getAddress().getPostalCode() + " - decoration"; } > 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 > Fix For: 1.0 > > > 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel