Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Immediate values and actions

843844Mar 6 2007 — edited Mar 8 2007
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 5 2007
Added on Mar 6 2007
7 comments
101 views