Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Share Object between popup and main window.No session Scope, maybe using Flash?

Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have already done this question in Oracle forums, but still I have not a response. You can see the thread here
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:


popupwindow.xhtml 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.

He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic