aspose file tools*
The moose likes JSF and the fly likes How to reset the view during RESTORE_VIEW phase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to reset the view during RESTORE_VIEW phase" Watch "How to reset the view during RESTORE_VIEW phase" New topic
Author

How to reset the view during RESTORE_VIEW phase

Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Hi everyone, once again, I got myself into some weird situation again. Thanks for your patience.

my page has a form that user can do search on a database table. My dataTable column begin with Delete and Edit button. My backing bean are in request scope. I have to use <a4j:keepAlive> in order for my Delete and Edit button to function correctly. However, my question here is, let's say I just do a search and I click the home page link and come back to my search page again. The <a4j:keepAlive> tag kept the last table I searched. Of course, when I commented out the <a4j:keepAlive> tag, my last search will not be there but than my Edit and Delete button won't work. I was wondering what method in FacesContext can I use to clear it and where should I place it? I have tried something like the following in my bean's <init>()



and I got an exception that says, I have a duplicate id frm1:_id22

Still have yet to come up with any promising solution. Hope someone can help, thanks again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to reset the view during RESTORE_VIEW phase
 
Similar Threads
What is an efficient way to implement an entirely AJAX based web app using JSF2?
Refreshing or Resetting the fields in jSF
button or link action not executed inside dataTable
Re-Render Problem after ValidationException
why the same URL shows different page in JSF