Hello,
I just started using DisplayTag and am struggling to get my dynamic
links/hrefs to work correctly.
I am trying to create a table from a Collection of custom objects.
Each object has a property called "actionCmd" that contains the necessary
href for the object.
Unfortunately, the display column with the href includes the same href for
every row in the table - the href for the 1st object in the list. Please
see the first display:column item in the example below. What am I doing
wrong?
Thanks.
<display:table name="sessionScope.queryResults" id="row"
sort="list" pagesize="10" defaultsort="1" requestURI="/viewqueryresults.do">
<display:column sortable="true" href="${row.actionCmd}"
property="primaryKey" title="${isisQuery.colHeader1}" headerClass="isis"/>
<display:column sortable="true" property="displayValue2"
title="${isisQuery.colHeader2}" headerClass="isis"/>
<display:column sortable="true" property="displayValue3"
title="${isisQuery.colHeader3}" headerClass="isis"/>
<display:column sortable="true" property="displayValue4"
title="${isisQuery.colHeader4}" headerClass="isis"/>
<display:column sortable="true" property="displayValue5"
title="${isisQuery.colHeader5}" headerClass="isis"/>
<display:column sortable="true" property="displayValue6"
title="${isisQuery.colHeader6}" headerClass="isis"/>
<display:column sortable="true" property="displayValue7"
title="${isisQuery.colHeader7}" headerClass="isis"/>
<display:column sortable="true" property="displayValue8"
title="${isisQuery.colHeader8}" headerClass="isis"/>
<display:column sortable="true" property="displayValue9"
title="${isisQuery.colHeader9}" headerClass="isis"/>
<display:column sortable="true" property="displayValue10"
title="${isisQuery.colHeader10}" headerClass="isis"/>
</display:table>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user