File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "Unwanted page refresh on action call" Watch "Unwanted page refresh on action call" New topic

Unwanted page refresh on action call

Paolo Pinkel
Ranch Hand

Joined: May 04, 2011
Posts: 35

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!
I agree. Here's the link:
subject: Unwanted page refresh on action call
It's not a secret anymore!