File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


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
 
GeeCON Prague 2014
 
subject: How to reset the view during RESTORE_VIEW phase