This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Clearing JSF Text filed values

 
ranjith moram
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have just started learning(2.x), I started developing login page.
when I enter value and submit the form, these values are saved and even I refresh it getting same value(Values Not being cleared).

How can I clear these values.

I googled for the same but I am unable to make it.

Awaiting for your answer.
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NOTE: "login pages" may be fine for training purposes, but for real-world web applications, please use the J2EE built-in login system. User-designed security systems are almost universally insecure.

When a page is displayed in JSF, the control values displayed will be whatever values were in the backing bean (Model) associated with that page (View definition). To clear the display, clear the backing bean values. Do not attempt to directly manipulate the UI itself.
 
Balaji Manoharan Bm
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think your bean is in session scope.
 
I do some of my very best work in water. Like this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!