Pop-up window in JSF
843842Jan 24 2007 — edited Aug 18 2008I am trying to launch a pop-up window using JSF, where the pop-up
window and the base window share an ArrayList<SomeBusinessObject>.
1. base_window.jsp (BackBean1.java - Request Scope)
2. popup.jsp (BackBean2.java - Session Scope)
The base_windows.jsp gets a list from the database and fill the information in the arraylist ArrayList<SomeBusinessObject>, this information can be empty as well.
When the user click a command button in base_window.jsp, it executes
a JavaScript to launch a popup window. Here rise my first problem, becuase is the place that I want to send the shared ArrayList to a popup.jsp window.
Then, the popup.jsp uses the shared ArrayList and make some changes. Finally, when the user submit popup.jsp, shared ArrayList is updated as well and I would like to send back this list to base_window.jsp.
Making the long story short, I would like to send object or object list from one page to another page.
After been searching and googling with no sucess. I have to say that I have found quite interesting components like JeniaComponents, the only problem is that my application use Method_save_state = server. So I can not use jenia's popup component.
I believe I can not use t:saveState becuase the popup window is a new window.
All help will be very appreciated.
Cheers!.
By the way, I using MyFaces and Tomahawk.