Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Katie Doody
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic