File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Problem with immediate= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with immediate="true" in JSF" Watch "Problem with immediate="true" in JSF" New topic

Problem with immediate="true" in JSF

Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Dear Sirs et Madames,
I have a facelets page (test.xhtml) that is like so:

Currently the command button simply bound to a method addAndContinue() which for now does a System.out.println to let me know that it is functioning.

However am experiencing some very perplexing behavior. When I click on the button, no statement is printed at all. As soon as I remove/comment out from test.xhtml the lines pertaining to the drop down menu, i.e removal of the following lines:

when these lines are removed, the method IS run and the statement is printed. This happens within a Spring Web-Flow flow, by the way. When I repeat the exercise but not as part of a SWF flow everything works as it should (the statement is printed) even with the drop down menu code left intact.

If when in the SWF mode, I add immediate="true" to the commandButton i.e

The println statement DOES run, but other things break. Does anyone know what is happening here? I will gladly post more code if necessary...

Thanks in advance.

You are what you know
Mahendra Pratap
Ranch Hand

Joined: Feb 25, 2008
Posts: 42

Problem might be with your

try to debug this.

Phoenix Kilimba
Ranch Hand

Joined: Oct 10, 2006
Posts: 64
Mahendra Pratap wrote:Problem might be with your

try to debug this.

Thanks for the response Mahendra, however am still puzzled, even if the problem is with entityAttributeConverter, why would the problem only occur within a SWF flow, but when the example is being run external to a SWF flow it works?
I agree. Here's the link:
subject: Problem with immediate="true" in JSF
It's not a secret anymore!