aspose file tools*
The moose likes JSF and the fly likes EDITING A JSF DATATABLE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "EDITING A JSF DATATABLE" Watch "EDITING A JSF DATATABLE" New topic
Author

EDITING A JSF DATATABLE

Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
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


You are what you know
Moayad Abu Jaber
Ranch Hand

Joined: Jan 15, 2008
Posts: 80
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.




Best Regards,
Moayad Abu Jaber
SCJP 5.0, SCWCD 1.4, SCBCD 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EDITING A JSF DATATABLE