This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF


Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Dear Sirs et Madames,
I have previously asked this question ( 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.

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:
Similar Threads
HtmlDatatable object being nulled out!
h:commandlink and a4j:commandlink only working on second click when in a datatable
How do you implement Tomahawk tree control with a CheckBox?
[JSF 2] Update the total of a column from a dataTable
Custom UIComponent?