// problem column definition
<display:column property="address.address1" title="Address"/>

This assumes that whatever object is returned by the getAddress() method
has a getAddress1() method. I don't think you can access object fields
from displaytag. Having publicly visible properties is bad design.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill
Blackmon
Sent: Friday, January 05, 2007 6:24 PM
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] display:table column bean retrieval?

Hi,
How does one call a method on the current object in the list assigned to
a 
display:table? For instance, using the current bean in the collection
('this'), I need
to get the bean's 'address' property. From the 'address' property I need
to get the 'address1'
property (and city and state and zip and country afterwards). Is this
possible?  

This is what I've tried and it obviously doesn't work:
<display:table name="sessionScope.list" export="false" id="row"
requestURI="/kw/advancedOfficeSearchNext.do" 
sort="page" pagesize="<%=rowsToRetrieve%>">

// problem column definition
<display:column property="<%=this.getAddress().address1%>"
title="Address"/>

Thanks!


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to