jsf - Issue with cell editor, Command button action fires even after internal validation error -


for column having cell editor has decimal value, if tried enter string characters showing validation error invokes action related button. save button code have

<p:commandbutton id="savebtn" value="#{msgs['button.save']}" accesskey="#{msgs['accesskey.save']}" escape="false" process="configrulepanel" onclick="var d=pf('wigvardatatable'), c=d.jq.find('td:has(.ui-cell-editor-input:visible)'); if(c.length)d.savecell(c); " update="myerrormessages" action="#{configbean.requestsave}" /> , input text in celledit is

<p:inputtext id="itemid" value="#{configrule.configitemvalue}" validatormessage="validation failed" validator="cellvalidator" > <f:convertnumber minfractiondigits="0" maxfractiondigits="5"/> </p:inputtext>

iam using primefaces 5.3, how stop save action when there error in page , suggestions??


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -