ajax - Unwanted <p:resetInput> behaviour on JSF Form -


i'm using p:resetinput allow users clear specific fields when want, if type on these text areas, , press enter while focus on inputtext, clears first textarea of form.

version: jsf 2.2 primefaces 5.2

example:

<h:form>     <p:inputtextarea id="test"></p:inputtextarea>     <p:commandbutton value="clear" update="test" process="@this">         <p:resetinput target="test"></p:resetinput>      </p:commandbutton>      <br />       <p:inputtextarea id="test2"></p:inputtextarea>     <p:commandbutton value="clear" update="test2" process="@this">         <p:resetinput target="test2"></p:resetinput>      </p:commandbutton>      <br />       <p:inputtext id="input_id" > </p:inputtext> </h:form> 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -