Stack: RichFaces 3.2.2.GA, Seam 2.1.0.SP1
We have a single-page application that is basically composed of 2 panels:
- the left panel contains a rich:tree that displays projects
- the right panel contains the project details, which contains a single h:inputText to display/input the selected project's name
When the user clicks on a node in the left-hand tree, the right-hand details panel is refreshed using the selected project's data using an Ajax request. The input text validation is done using a4j support with event=onblur, reRender on the proper decoration and bypassUpdates=true. I have taken care of the infamous inputText refresh problem as detailed here: http://jboss.com/index.html?module=bb&op=viewtopic&t=136386.
All this works perfectly except in one particular case: the user clicks on project1 in the tree, clicks inside the detail input text, enters some data (let's say "p1mod"), then clicks on project2 in the tree. With this particular sequence, the details panel is refreshed correctly and the input text displays project2's name, but a split second later the input text displays the data the user previously entered ("p1mod").
Any idea why this is happening? And did anybody succeed in making something similar work?
Thanks a bunch!
Fixed. The UIInput reset method was called too often and cancelled out some re-rendering.