3 Replies Latest reply on Jul 23, 2010 5:00 PM by Fabin Riako

    Reset Form Fields

    Fabin Riako Newbie
      Hi All,

      I have a rich:ModelPanel with a button to clear all fields in the form. I did it in the following way

      <a:commandButton id="clearBtn" action="#{myManagerAction.editClear}" value="Clear" oncomplete="#{rich:component('addPanel')}.show()" immediate="true" reRender="addmyForm"/>

      And cleared all the fields in editClear() function (set to "") but the form is not getting cleared. Anybody knows how I can do it.