Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:commandButton onclick returns false but action still executed

 
Joe Walt
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a h:commandButton that is suppose to perform and action if form validation returns true. if form validation returns false the same screen should be displayed with errors. When there are errors on the form the screen is redisplayed showing the errors but then the action is preformed a few seconds later. I was told that this is caused by an add-on from publisher “Conduit Ltd”. If I disable this add-on it fixes the problem but I am hoping to find a solution that does not require disabling this add-on.


<h:commandButton value="#{msg.ui024_button_checkout}"
class="button"
action="#{checkoutBacking.executeCheckoutProcess}"
onclick="return validateCheckOut(this.form)"
onfocus="markNoError(this)"/>  
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic