This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?
Consider Paul's rocket mass heater.
subject: Problem with immediate="true" in JSF
Similar Threads
Component ID frm1_window viewid has already been found in the view
Problem with Spring Web Flow
I need help with ajaxSingle, reRender and immediate.
Problem getting richfaces tree to display
commandLink in table -> javax.servlet.ServletException: Can't find bundle