I am doing a product insert form in PrimeFaces dialog. My bean’s scope is session. I can insert a product, but when I try to insert another product, the form has previous product’s information. I want to reset form. I tried UIInput but it doesnt work. How can I clear the form?
I am doing a product insert form in PrimeFaces dialog. My bean’s scope is
Share
Just create a new product after saving it and make sure that you’re ajax-updating the form after save.
E.g.
with
By the way, that kind of bean really doesn’t belong in the session scope. Put it in the view scope.