• Post Reply Bookmark Topic Watch Topic
  • New Topic

JS onclick to show data of the selected row in a new browser window.

 
Mike Boota
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a datatable populated from ListDataModel there is a commandButton at the end of each row, how can I get the selected row in javascript using onclick.

Basically when a user clicks on the button I want to open a new browser window and show the values of the selected row. Can someone please tell me how can i achieve this.


Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am leaning to think this is a JavaScript question and not a JSF questions. Your html that has the JSF component can still have an attribute for js function calls like onClick.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!