1 Reply Latest reply on Apr 8, 2010 2:55 AM by Ilya Shaikovsky

    type="reset" button not working as expected

    Krishna Kishore Novice

      Hi,

      In my page I have some controls like text boxes and drop downs. At the end of the form I have 2 buttons, one for submitting and the other for resetting.

      For resetting i wrote the code like this :

       

      <a4j:commandButton value="Reset" type="reset" action="#(beanName.methodName}"/>

       

       

      After providing some values in the input fields, when I press this reset button, the values are not getting cleared.

       

      If I press the reset button without providing any data in the input fields, valdations are geting fired for all the controls (Written validations for controls).

       

      Please suggest me on this topic.