File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with immediate="true" in JSF

 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mahendra Pratap
Ranch Hand
Posts: 42
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem might be with your

try to debug this.
 
Phoenix Kilimba
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic