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

jsf page that does not update values according to the model  RSS feed

Samuel Viana
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!