Can't reset input Field JSF

<>

This question already has an answer here:

Answers


Try using the resetInput component:

http://www.primefaces.org/showcase/ui/misc/resetInput.xhtml


Try using the preRenderView event of JSF and call a Bean function :

<f:metadata>
  <f:event type="preRenderView" listener="#{rBean.resetValues}"/>
</f:metadata>

As in the above example the resetValues function of rBean will be called on every page load.And in this function you can reset all your bean variables as following:

public void resetValues()
{

    setName(null);
    setAddress(null);
    .
    .
    .

}

Need Your Help

Drupal 6: Getting custom fields into the database

forms drupal

I needed a custom field that couldn't be provided by the core profile module (Select list populated from a SQL query). I was able to successfully add the field with proper options; however, I am un...