Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unwanted page refresh on action call

 
Paolo Pinkel
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic