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
Post a Comment