File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling action method on data table row click

 
Joshua Antony
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Zack Marrapese
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic