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 Unwanted page refresh on action call 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 "Unwanted page refresh on action call" Watch "Unwanted page refresh on action call" New topic
Author

Unwanted page refresh on action call

Paolo Pinkel
Ranch Hand

Joined: May 04, 2011
Posts: 35
Heya!

I'm currently facing some strange behavior.

Sometimes, if I click a commandButton that calls an action method, it will just do a page refresh without actually calling the method!

I set a breakpoint in that method and if this behavior takes place, the method is not called. What is also strange about it: It also does that if I didn't fill values in input components that have "required=true". I would expect that a valdiation error appears. The error appears only if the action method would be called fine. But not if it will just issue that strange page refresh.

The call looks pretty normal and works in most cases:



I can't exactly figure out when this behavior appears (and when not), but it should have something to do with the values chosen in some of the other components. But... how?

(I have two forms in a xhtml file. I just mention that because I don't know if it is important or not.)

I hope someone can help me.

Thanks for reading!
 
wood burning stoves
 
subject: Unwanted page refresh on action call
 
Similar Threads
Creating a custom scope... (kinda long)
JSP + struts html:select
automatic form reset and resubmit
jQuery , session timeout and cache issues
JSP + struts html:select