Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design 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: 18094
48
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: 18094
48
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic