I'm still facing problems using the immediate attribute in the input
fields and in the command buttons.
In this post: http://forum.java.sun.com/thread.jspa?threadID=5142686
I described the first problem I had to manage.
Now there is one more question:
Suppose this is my Faces JSP:
+-------------------------------------------------------+
| ________________ |
| user code |________________| |
| |
+-------------------------------------------------------+
| |
| | INQUIRY | | BROWSE | |
| |
+-------------------------------------------------------+
| ________________ _______ |
| description |________________| age |_______| |
| |
+-------------------------------------------------------+
The "user code" and the "age" fields are integers,
the "description" filed is a string.
The "user code" and the two command buttons are "immediate".
When I invoke the inquiry action everything works fine:
- The value of the user code input field is updated during the Apply Request Values phase;
- The action is correctly executed;
- The validators on the other fields are not invoked.
When I invoke the browse action instead there is a problem:
The value of the user code input field is updated during the Apply Request Values phase and
the action (that calculates the next user code) is correctly executed;
The problem is that the new calculated value is never updated because the
PROCESS_VALIDATION, UPDATE_MODEL_VALUES and INVOKE_APPLICATION phase are skipped.
How can I update correctly that value?