• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsf page that does not update values according to the model

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic