File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes clearing the form after submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "clearing the form after submit" Watch "clearing the form after submit" New topic

clearing the form after submit

leonardo ginting
Ranch Hand

Joined: Jul 25, 2011
Posts: 48
dear master...
hi guys help me please how do i clearing the form after submit

this is kind of my form
-- form input Date

how if my form is reference to the some entity and how do clear that field

-->i have form and this form have a "value" attribute that reference to some object on some entity and approximately how do i clear the form

and if i have some form that have a type is Long, BigDecimal and etc how do i could clear those??

thanks for your advice

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950

When a View is posted to the client - it will display the current values of the referenced backing bean properties. That includes properties that act as values for form controls.

So to clear the form, you must clear the backing bean.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: clearing the form after submit
Similar Threads
JS Error ACCESS IS DENIED when submitting the form in jsp file through javascript
How SCRIPT tags are handled in JSP Forward
Help reset/clear form data
keep the field