File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes How to pass multiple parameters. Displaytag row value not changing on dynamic link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to pass multiple parameters. Displaytag row value not changing on dynamic link" Watch "How to pass multiple parameters. Displaytag row value not changing on dynamic link" New topic
Author

How to pass multiple parameters. Displaytag row value not changing on dynamic link

Katie Doody
Ranch Hand

Joined: Nov 03, 2006
Posts: 90
I am trying to create a dynamic link and my row value does not seem to change. It is always passing the value of the first row. I have tried everything I could find so any help would be great. In the two links below row.reqId does not change. If I display the property in the table, it is changing properly but when I try to reference it so I can pass it to the javascript it is always passing the reqId for the first row?

Here is my code:


[ September 30, 2008: Message edited by: Katie Doody ]
Katie Doody
Ranch Hand

Joined: Nov 03, 2006
Posts: 90
I found the answer. I was close but my syntax was not quite right. The code below sends multiple parameters specific to each row to create dynamic links. Thanks anyway.


[ September 30, 2008: Message edited by: Katie Doody ]
Mamata Java
Greenhorn

Joined: Aug 26, 2010
Posts: 1
I am also facing the same issue like Displaytag row value not changing on dynamic link.

<display:table name="${list}" uid="row" requestURI="compteamMngrView.action" sort="list" pagesize="10" decorator="" class="basic-table">
<display:column property="empSerial" title="Employee Serial" headerClass="bar-blue-med-dark" href="populateCompRequest.action?param=${paramVal}&userAcces=COMP_ACC&nodeID=${node}&depth=${dep}" paramId="compId" paramProperty="compId" />

<display:column property="firstName" title="First Name" headerClass="bar-blue-med-dark"></display:column>
<display:column property="lastName" title="Last Name" sortProperty="firstName" headerClass="bar-blue-med-dark" />
<display:column value="History" title="Link to Comp History" headerClass="bar-blue-med-dark" href="JavaScript:newPopup('${row.compId}');" />
</display:table>

I am trying iterate one list and in History link i want to pass the reference variable as compId which is calling by java script but it is always passing as 1st row variable even i tried by i removing ' ' mark then the javascript method not able to hit.
Could some one please help me in this how to proceed.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass multiple parameters. Displaytag row value not changing on dynamic link