Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

on refresh previously entered data is coming in the text fields.

 
Janardhan Chowdary
Greenhorn
Posts: 15
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

When click on save button i have to reload the same page. I am able to do the same but i am getting the previously entered data in the text fields.

Please suggest me to resolve this issue.

I am using the below technologies:

1.JSF 2
2.Primefaces
3.viewscoped managed beans.
4.ajax
 
Jay Lim
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, you can invalidate the session after clicking the save button.
This will reset the form upon refresh of the page.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jay Lim wrote:Hi, you can invalidate the session after clicking the save button.
This will reset the form upon refresh of the page.


Remind me to flee the room when you want to swat flies. I get nervous when people use high explosives.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jay Lim wrote:Hi, you can invalidate the session after clicking the save button.
This will reset the form upon refresh of the page.


Remind me to flee the room when you want to swat flies. I get nervous when people use high explosives.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic