my dog learned polymorphism*
The moose likes JSF and the fly likes jsf page that does not update values according to the model 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
Bookmark "jsf page that does not update values according to the model" Watch "jsf page that does not update values according to the model" New topic
Author

jsf page that does not update values according to the model

Samuel Viana
Greenhorn

Joined: Jan 23, 2009
Posts: 2
Hi

I'm using a JSF page with facelets technology, JSF 1.2 with RichFaces components. The problem is, I have a datatable with two columns some inplaceInput's in the first column at the right. I also have some buttons, which are ajax commandbuttons. One of the buttons is supposed to change only the first column with zeroes, and put the old values in the first columns into the second, replacing the ones that were there before. The problem is, when I click one of the buttons, I can through output with println's in the middle of the code, that the model is being correctly updated, but that update is not being made after the rerender of the components (just to remember that the buttons are ajax-enabled buttons). I can see the value in the managed bean which has the model being replaced when I click the button, but in the page the values keep being the same.

I'm just driving nuts . I've tried everythings, from using the immediate=true attribute to changing the reRender attribute to the id of the table or only the id's of the columns whose content values are supposed to change. Anyway, it's not working. The model is being updated, but that it's not reflected in the data table which appears in the browser !

Here is code of JSF XHTML (remember, I'm using facelets!):



Best regards,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsf page that does not update values according to the model
 
Similar Threads
Question on rendering
Can't reRender richfaces datatable from modal panel
richfaces:: richdatatable problem.
I need help with ajaxSingle, reRender and immediate.
Problem with headers in sorted rich:datatable with subtable