• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic