aspose file tools*
The moose likes JSF and the fly likes calling action method on data table row click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "calling action method on data table row click" Watch "calling action method on data table row click" New topic
Author

calling action method on data table row click

Joshua Antony
Ranch Hand

Joined: Jun 05, 2006
Posts: 254
I am using tomahawk datatable. whan row of the datatable is clicked , I need to display another page.

Is there any way by which the action method of bean can be called on rowclick of datatable?

Regards,
Joshua


SCJP,SCWCD, Into ATG now!
Zack Marrapese
Greenhorn

Joined: Jul 02, 2008
Posts: 27
never used tomahawk datatable...but on h:dataTable and rich:dataTable, you can create an action using a command button, command link, or whatever you like just like you do when you are outside a data table.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

Tomahawk's datatable is an extension to the basic (core) JSF datatable - one extra feature it offers is the support for multi-page tables.

To make it possible to click anywhere on a row would mean doing some JavaScript work, since that's not a basic HTML ability. However, most apps just put links or buttons on "interesting" areas in the row and people find that acceptable.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling action method on data table row click
 
Similar Threads
IBM JSF and hx:commandExRowAction issue
Problem with commandButton inside dataTable
passing hidden field value to backing bean
how to highlight a row in h:datatable when mouse over it
A viewpage, a table and two backing beans