Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

highlight the selected row from datatable to submit using "submit" button.(No radion buttons )  RSS feed

 
suresh nerella
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, As i am very new to the JSF.
my requirement is:
i have a datatable with 3 coloumns like "id", "name" and "age". ( no radio button and no checkbox).
when i click on a particular row of the datatable it should get highlighted and i need to submit the values to the backing bean
for some business logic.

I think we need to use Javascript to handle "onclick" for the row selected.

Please give me the best example.
 
suresh nerella
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can find the solution at below link:

http://www.coderanch.com/t/446958/JSF/java/JSF-page-submitting-backing-bean
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!