3 Replies Latest reply on Jul 23, 2010 5:00 PM by fjkjava.febinjk.gmail.com

    Reset Form Fields

    fjkjava.febinjk.gmail.com
      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.

      Thanks