Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

datatable commandlink action method called for each row

 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I must give credit to another question on the Sun JSF Forums to punishervanka. But I have the same question and it is not being answered there and want to try here. Any information would be wonderful. And an outputLink will not work here, I don't want a cheesy work around for this.

http://forum.java.sun.com/profile.jspa?userID=450032



When I click on the link in the datatable the action method is called for all the rows in the table.
By reading the forums on this topic I thought this was the method to find out the row index in the table.
I also tried value binding datatable to UIData in the backing bean and using getRowData in the action method. then also the action method was called once for each row.

what am I doing wrong.

please help me

thanx
phani

[Edited for code tags a to lose smilies. Gregg Bolinger]
[ May 12, 2005: Message edited by: Gregg Bolinger ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I edited your thread to get rid of the smilies. When you post code be sure and check the checkbox to disable smilies. Espeicially with JSF tags. Also, please put Code Tags around your code so it keeps formatting and is easier to read.
 
Grow your own food... or this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic