This question already has an answer here:
- JSF resetting form after submit 1 answer
I want to reset text field on click of the reset button. How can I do it in JSF?
This question already has an answer here:
I want to reset text field on click of the reset button. How can I do it in JSF?
Well, then make an
<input type="reset">
and if you have a<h:form>
it will work. If you want to clear an individual field, use javascript.You can reset your form in JSF using
You can use an action to rest all fields that you want to rest:
and