jsf - InputText not sending new values -
i have simple inputtext in set default value getting object. after edit inputtexts value, push button, calls save method in bean. expect inputtext understand changed value , change objects value edit it. turns out, old value, not new (edited one) in bean.
maybe have ideas main cause of issue?
here inputtext:
<h:inputtext value="#{associationbean.countertypeview.name}" id="ctpname" maxlength="100" validatormessage="#{msg['classifier.namerequire']}"> <f:validaterequired /> <rich:validator /> </h:inputtext>
you can use jsf ajax inside h:inputtext tag this
<h:inputtext value="#{associationbean.countertypeview.name}" id="ctpname" maxlength="100" validatormessage="#{msg['classifier.namerequire']}"> <f:validaterequired /> <rich:validator /> <f:ajax event="blur"/> </h:inputtext>
this is, on blur event of input text ajax called , new data saved in specified bean
Comments
Post a Comment