• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EDITING A JSF DATATABLE

 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sirs et Madames,
I have previously asked this question (http://www.coderanch.com/t/472185/JSF/java/SINGLE-LINE-EDITING-JSF-DATATABLE) but no-one has answered it, am assuming maybe no one understood what I was asking so am hoping if I rephrase it someone could help, as am DESPERATELY stuck for ideas here...

I have a datatable which displays 4 columns... the first column containing checkboxes, and the fourth (final) column displaying values. I want that if I click on a checkbox for a particular row, the final column (value column) becomes editable without necessitating navigating to another page. Here is a link to an example of what I have in mind.

http://www.javapassion.com/handsonlabs/jsfdatatable/#Exercise_3

I can achieve what the example acheives, on clicking the checkbox, the corresponding value field becomes editable, HOWEVER the example does not go as far as PERSISTING these changes to a database, and when I try persit the changes, the ORIGINAL value is what is persisisted, as in the new edited value does not even seem to get picked up. Have been struggling with this for days, can someone please help? Would Ideally like to be able to do this without ajax or any other technologies, would like to use purely the same techniques as in the example provided in the link.

Would appreciate all the help I can get,
Thanks in advance
 
Moayad Abu Jaber
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You asked question already answered by you !
The above link explain how you can do it without any page navigation or ajax-enable !!

the only thing doesn't mention in the example how you implement save change button.



 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic