aspose file tools*
The moose likes JSF and the fly likes JSF input text value is not getting cleared after submission Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF input text value is not getting cleared after submission" Watch "JSF input text value is not getting cleared after submission" New topic
Author

JSF input text value is not getting cleared after submission

sunil langeh
Ranch Hand

Joined: Sep 04, 2007
Posts: 88
Hi Friends,

While working with JSF i am facing a problem i.e textbox is not getting cleared on successfully submission of the form, Please give some idea..

Thanks
Sunil


Thanks
Sunil (SCJP 5)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

An h:inputText control will display whatever data value its associated value property contained when the page was (re)rendered. To clear the control (View), clear the Model.


Customer surveys are for companies who didn't pay proper attention to begin with.
sunil langeh
Ranch Hand

Joined: Sep 04, 2007
Posts: 88
Thanks for your reply - TIM,
Could you please explain me how to clear the model with some example...
 
wood burning stoves
 
subject: JSF input text value is not getting cleared after submission