Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 730289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:53:42+00:00 2026-05-14T06:53:42+00:00

I have one parent page with a parentManagedBean (attached to Session Scope). On click

  • 0

I have one parent page with a parentManagedBean (attached to Session Scope). On click of a button on this parent page, one popup comes which has a childManagedBean (attached to Request scope).

Now ChildManagedBean holds a reference to parentManaged bean through JSF’s managed property facility. On this popup window, user selects some option which populates a large value object. I use the managed property of childManagedBean to set the values from this large object to that of parentManagedBean.

Problem is – The parent page shows a link, on click of which a popup comes, on selection of the popup, the popup disappears and set the values to the parentManaged bean. So far so good, but the newly set values need to appear on the parent page. This is where I am stuck. How to programmatically render the master page/render page when I am at the child managed bean? Is there a way I can get handle of the parent page and refresh it?

Note: I’m using JSF 1.1

EDIT-

After following the solution of “resubmit-ing the form” from javascript, I am seeing that the old form is getting resubmitting which overwrites all of my changed values.

EDIT–
What I find now is – if I issue a GET request, meaning, after the child window is closed, if I go to the main window and just press enter on the address again (which issues an GET request I believe), the newer values – updated values are coming back.
So the point here is – how to issue a get request using javascript or is there any better way of doing this through JSF ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:53:42+00:00Added an answer on May 14, 2026 at 6:53 am

    I had some similar case, and I triggered a refresh of the parent page with javascript.

    Child

    When the user clicked “save” in the popup, the action is submitted to the child with POST, which updates the parent bean, and then redisplay the child page with some javascript:

    window.opener.doRefresh();
    window.close();
    

    This gave the illusion that when the user click on “save”, the popup is closed directly. You can maybe use a similar trick in your case.

    Parent

    function doRefresh()
    {
        if(document.forms[0].onsubmit)
        {
            document.forms[0].submit();
        }
    }
    
    function openChild()
    {
         window.open("path_to_child.jsf","_blank","");
         return false;
    }
    

    If I remember well, I couldn’t use location.reload to refresh the page. Either because reload may resubmit an old form, or because it issues a GET request which JSF doesn’t like that much. So I was submitting the form programmaticaly. This essentially achieves the same.

    This solution was not a masterpiece of elegance, but well, it worked for me 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a parent object which has a one to many relationship with an
Lets say I have two tables - child and parent with many-to-one relation. What
I have one text input and one button (see below). How can I use
I have one std::list<> container and these threads: One writer thread which adds elements
I have one application which uses the standard .NET forms authentication cookie, now I
I have one field that I need to sum lets say named items However
I have one thread that writes results into a Queue. In another thread (GUI),
I have one hibernate sequence, that generates all sequence-numbers in my app. When I
I have one website on my server, and my IIS Worker Process is using
I have one user who gets an error message when he closes his browser.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.