Forums Register Login

datatable commandlink action method called for each row

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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.
No holds barred. And no bars holed. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3233 times.
Similar Threads
Action method not getting called inside the dataTable
datatable with sorting in jsf
Input row select on data table does not get called
Unable to call Action Methof
passing parameters from JSF to Java class and JSF to JSF
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:59:42.