This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes datatable commandlink action method called for each row Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "datatable commandlink action method called for each row" Watch "datatable commandlink action method called for each row" New topic
Author

datatable commandlink action method called for each row

Jeremy Wilson
Ranch Hand

Joined: Feb 18, 2003
Posts: 166
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 ]

Jeremy Wilson
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
 
jQuery in Action, 2nd edition
 
subject: datatable commandlink action method called for each row
 
Similar Threads
Unable to call Action Methof
datatable with sorting in jsf
Input row select on data table does not get called
passing parameters from JSF to Java class and JSF to JSF
Action method not getting called inside the dataTable