This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes on refresh previously entered data is coming in the text fields. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "on refresh previously entered data is coming in the text fields. " Watch "on refresh previously entered data is coming in the text fields. " New topic
Author

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

Janardhan Chowdary
Greenhorn

Joined: May 21, 2012
Posts: 15

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


He who cannot obey himself will be commanded. That is the nature of living creatures.
Jay Lim
Greenhorn

Joined: Jul 04, 2012
Posts: 4
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

Joined: Jun 25, 2001
Posts: 14475
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14475
    
    7

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: on refresh previously entered data is coming in the text fields.
 
Similar Threads
Problem with default '' , 0 and 0.0 being inserted into database while using JSTL.
Problem of resubmisson in struts2
Deleting the previously entered values
How do I do this, input field retains value
2 textfields 1 model