aspose file tools
The moose likes JSF and the fly likes Clearing input text fields (Primefaces) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Clearing input text fields (Primefaces)" Watch "Clearing input text fields (Primefaces)" New topic
Author

Clearing input text fields (Primefaces)

Tram mart
Greenhorn

Joined: Sep 20, 2011
Posts: 4
Hello,

I have a menu with 2 options, one of them is "Create new user".
When I press on "Create new user" there is a form, and a "Next" button. When pressing "Next" I go to another form, and finally I click on "Save" and all the data is saved.
The problem is that after saving all the data, if I press again in "Create new user", all the fields still have the last data that I wrote, instead of being blank.
How could I fix this? Thanks
Clemens Brunnow
Greenhorn

Joined: Jan 27, 2011
Posts: 10
maybe just set the scope of the bean, where the data is stored to RequestScoped or just set all values to null after saving the user
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Clearing input text fields (Primefaces)
 
Similar Threads
BackingBean problem
Input field and form ?
Validation not working after clearing the form
Struts Issue - Repopulating a Form Bean
multiple forms in struts