• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF input text value is not getting cleared after submission

 
sunil langeh
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sunil langeh
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply - TIM,
Could you please explain me how to clear the model with some example...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic