You could use a column decorator to generate the link. If you want it sorted by ID you will have to play some trick because the sorting is done with the decorated value (I do not understand why). The column decorator can then produce something like:

 

<span id=”199”></span><a href…

 

The “<span” is to make it sort correctly and not to have any effect from the HTML point of view.

 

Michel

 


From: Alice Chen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 11:40 AM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] display:column problems

 

We are trying to use displaytag to display a column of dynamic link with multiple parameters appended to it. We tried to form the link on the java bean and we are able to get it but not able to sort it right (because we have multiple paramters and it sorts the string based on the entire url).  --

 

here is an example of the link :

 

<a href:someurl/admin/WorkListEdit.do?method=showApplication&appid=199&codeid=200>code</a>

 

our jsp is like this --

<display:column  property="codeUrl" title="Code" sortable="true"  />

Since it was not sorting properly, we changed the column tag to:

 

<display:table id="lineObj" name="list">

<display:column property="code" href="" paramId="appid" paramProperty="applicationid" title="Code" sortable="true"  />

 

However, the column href is always pointing to the first object of the list.

 

Any help would be very appreciated!!!!

 

achen


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Reply via email to