| Author |
Share Object between popup and main window.No session Scope, maybe using Flash?
|
Yeray Santana Borges
Ranch Hand
Joined: Mar 02, 2008
Posts: 46
|
|
Hello,
I have already done this question in Oracle forums, but still I have not a response. You can see the thread here https://forums.oracle.com/forums/thread.jspa?threadID=2378190&tstart=0.
I am trying to share information between one view to a new window opened as popup. I am trying to use flash to share information, currently I don't know if flash can be used for this. This is my question asked in Oracle forums:
I am trying pass a java object to a popup window after a jsf ajax request. When the user clicks on a h:command button, the application does an ajax request. In an actionListener method of a session scope managed bean I create a big object with data. When the ajax request returns to the client, I am opening a popup window to show the data of the object created in the previous action listener method.
I don't want save the object in the session and I cannot use the object like a request managed bean, because the ajax request finish before than the popup is opened, and the popup is opened in a different page and a Request Scope bean it is not available in the new request.
I thing that I cannot use a View Scope bean to save the object, because the popup is a different view. I cannot use view params because I need a converter to transform the object created in String properies and the object has many properties. Now I am trying to pass the data from the main window to the popup using the flash scope. But I cannot do a sample page to pass data between a main window and a new page opened in a popup.
Look at the next sample:
index.xhtml
ControlledBean.java:
popupwindow.xhtml
RequestBean.java is a simple POJO
At the end the input "result" in popupwindow.xhtml shows nothing, I am trying to see in this input the value "Value created in ActionTest". Any help, tip, sugestion?
Thanks for your time.
|
SCJP 6 - SCWCD 5 - SCBCD 5
|
 |
 |
|
|
subject: Share Object between popup and main window.No session Scope, maybe using Flash?
|
|
|