Refreshing parent window

Hi
My window is opening a pop up window which is itself a jsf, however when this pop up window get closed i need to refresh the parent window that loaded it (in example a compose mail window is loading a select contact window, the select contact window is updating a bean with the selected contact) how do i refresh the parent window with the selection from the popup jsf window?

I guess not. Write it yourself or wait for somebody else to do it (MyFaces?).
I should let somebody more knowledgeable than me answer, but I'll take a shot at what I think they might say (except they'd probably take the time to be much more diplomatic): the JSF RI you download from Sun is only supposed to be a starter kit. JSF is a specification, not a product. The specification includes some basic html behavior that you can be sure all conforming implementations will support. Furthermore, it's intended to be something foundational, not really an end-user product. The expectation is that vendors will proceed to develop wonderfulness using JSF as a basis.
(You have a reminder set to check this thread every 3 days, don't you? :)
John.

Similar Messages

  • Is it possible to refresh parent window using only JSP??

    If I open a up a new browser window using target="_blank" in the link. Is it possible for me to refresh the parent window using only JSP?
    I know it's possible using Javascript ( window.opener.location.reload(true) ), but my customer don't allow me to use Javascript.

    There is no problem Timo. I'm actually glad that you responded. You're a person that works with ADF for a long time so you know what can be or not easily done, so many thanks.
    I'm going to ask you another question so i don't have to open a new topic and cause a little spam on the forum.
    Is there any way to have more than 2 attributegroups working in my treemap, or in another words, more than 2 ifs in my treemap to color the elements by more than 2 colors or patterns?
    I have this:
    <dvt:treemapNode value="#{row.Store}" label="Store: #{row.Store},  amount: #{row.Amount}" id="tn2" drilling="replace">
         <dvt:attributeGroups value="#{row.Amount lt 10000000}" type="color" id="ag5" label="#{row.Amount lt 10000000 ? 'Abaixo dos 10.000.000' : 'Abaixo dos 20.000.000'}"/>
         <dvt:attributeGroups value="#{row.Amount lt 20000000}" type="color" id="ag7" label="Amount less than 20.000.000"/>
    </dvt:treemapNode>
    If i try to put another attributeGroups, it will not work, for example, for the tests, i've try to add a attributeGroup for an especific amount and all my elements got colored.
    Don't know if it is important but i have a hierarchy in my treemap.
    Any ideias Timo?
    Regards and many thanks.

  • Popup form refreshing parent window

    We have a main parent page, from which you can do many things
    (among them add a file, delete a file, replace a file, where
    replace is basically delete then add) - the way it's coded, when
    you first go to the page, the parameters are in the URL; if you add
    a file, they stay in the URL, and everything's happy; if you
    replace or delete a file, though, the URL gets stripped of the
    parameters (since they're now in form variables). If you *then* go
    to add or replace a file after replacing or deleting, when the
    popup that lets you choose the file to add closes and tries to
    refresh the parent, you get the annoying "to display this webpage
    again, Internet Explorer needs to resend form data..." popup. If
    the user clicks "retry", it works just fine, but I'd like to
    eliminate the annoyance if at all possible.
    Right now, the refresh parent/close popup is being
    accomplished with javascript:
    opener.location.reload(true);
    self.close();
    The root of the problem seems to be that the delete function
    doesn't need a popup, and so doesn't retain the full URL with
    parameters, and I could do a lot of work to change that, but I'm
    wondering if there's any other way around this that might be
    simpler, since it's not something that comes up often or even
    causes any functional problems, but is annoying.

    Bummer.
    I actually already tried that, but I think because we're
    using fuseactions, it took me back to the default page for that
    URL, which is not the same page. Ah, well.

  • Refreshing Parent Window on Close of Child Window

    I need to open a new popup window/tab using window.open method of javascript and on close of the new tab/popup window have to return some values from closing window to parent window. When I open a popup suing window.open in my asp .net application which is supposed to be compatible with iPad. Value has successfully been returned when I use IE, Chrome, FireFox and Safari (on PC with windows 7).
    Unfortunately the same code fails in Safari when I access the application through iPad. On iPad domObject is prompted on new window open instead of prompting returned value on new window close.
    Below is the code. Parent Window:
    Parent Window:
    <script type="text/javascript">
            function modalWin() {       
                    retVal = window.open('About.aspx', 'name', 'height=255,width=250,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no ,modal=yes');
                    alert(retVal);
        </script>
    //HTML
    <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <a title="Test New Popup" onclick="modalWin();">New Popup for all browsers.</a>.
    </asp:Content>
    Popup window or new tab:
        <script type="text/javascript">
            function closeIt(tempValue) {
                window.returnValue = tempValue;
                window.close();
        </script>
    //HTML:
    <input id="btnButton1" value="btnButton1" type="button" title="Press it to Close" onclick="closeIt('btnButton1');" />
        <br />
        <input id="btnButton2" value="btnButton2" type="button" title="Press it to Close" onclick="closeIt('btnButton2');" />
        <br />
        <input id="btnButton3" value="btnButton3" type="button" title="Press it to Close" onclick="closeIt('btnButton3');" />

    HI for your reference
    am opening the new window by using
    <i><b>page navigation property</b></i> in that I am setting the
    Launch a new window  :   display in seperate window
    now if i close the main window ie potral screen i want the window which is opened through this also to be closed
    regards
    Abhijith YS

  • Close popup window and refresh the parent window

    Hello,
    I have a button in a normal report, when clicked opens up an popup window which is a form containing some items and here in this form (i have some editable text items) I make some changes and click on the apply changes button -- this should update the form, close the popup window and should refresh the parent window.
    can anyone please help me out with this issue.
    Thanks,
    Orton

    you have your popup window. When they apply the changes you want it to close the window, right?
    Modify the button (save, apply changes) and give it url redirect to the custom function you create (See below): javascript:saveChanges();
    in the page header, add a new function:
    <script type="text/javascript">
    function saveChanges(){
         doSubmit('SAVE');//this is the line to save the current form on the popup window. (This assumes SAVE is the request value that should udpate the db)
         window.close();//close the popup window
         window.opener.doSubmit('REFRESH');//call doSubmit function on the parent window to cause the page to refresh.
    </script>

  • Refresh parent without clearing cache

    Hi:
    Does a parent window reload clear the cache of the parent window as well?
    I have a custom lov. The pop0up wworks fine. The only way I seem to be able to assign the value back to the parent and have it display is to refresh the parent window from the popup. However, it seems to be clearing the cache of the parent and the values in the fields that were there get blanked out.
    Is there a way of reloading the parent window without clear the cache?
    Thanks.
    Bruce

    I experimented a bit and resolved it.
    Originally, from my popu; window I was calling the following:
    window.opener.location.reload(true)
    However, you need to leave out the value and call the following:
    window.opener.location.reload()
    This works fine and the original values on the parent are not cleared.
    Problem resolved.

  • Refreshing Parent.jsp and forwarding to Child.jsp

    Hi
    I have a parent.jsp where I provide criteria to query and export the data to excel. If the resultset is null I forward to parent.jsp with error message, but if there is data I forward to child.jsp.
    If in the first attempt there is no data and display of error message in parent.jsp and in the subsequent second attempt I change the selection criteria and get the data report in excel format, but the error message displayed in parent.jsp for the earlier transaction remains the same i.e. parent.jsp should ideally refresh and then forward to child.jsp.
    Currently I am using the following code and controlling it with a script that is called on click of submit i.e. I set the text (error text) value to null. Is there a better way to achieve this? Kindly help
    <%if (error != null) {%>
    <table>
    <tr>
    <td>
    <input type="text" name="errorMsg"
    style=" color:red; font-size: 8pt; FONT-FAMILY: verdana, helvetica;font-style: TT; border:'0'; font-weight: Bold"
    value='<%= error %>'
    size="141" readonly="readonly"/>
    </td>
    </tr>
    </table>
    <%}%>

    Thanks a lot frndz.. for your reply.. but both ways I tried its not working ..Devendra I went thru the code given there in the link but it couldn,t work... I tried for window.opener.refresh(). In spite of refreshing the parent jsp and getting the pop up closed ,it displayed the the refreshed parent JSP in the pop up window. keeping parent JSP intact..
    Any other alternative can anyone advise... :)

  • Refreshing parent page from an IFRAME - javascript?

    Hi
    I have an IFRAME embedded in a jsp page. In the IFRAME, a user gets to submit a form, after which I need it to call the parent jsp page to refresh itself. The JSP page has a table with values from the database and needs to be refreshed to reflect the new form submitted to the database.
    I believe i'll need to use javascript for this, since I'm not using struts, or action classes.
    can anybody help out, with code samples? I've tried searching on google, but most examples are incomplete. If anyone has a link to it I'll be very grateful.
    Thanks

    well to refer to the parent frame, from the javascript panel I believe you can just access window.parent.
    so window.parent.location.reload() should do it.
    However reloading the parent window, will also reset the iframe. If you are going to reload the parent frame anyway, you could potentially submit to it instead of your iframe form by using a target="_parent" on the iframe's form.
    Hope this helps,
    evnafets

  • Javascript to open popup window and disable parent window

    Hello,
    Can anyone please help me the javascript issue.
    I have a button which opens up a pop window and when this popup window is opened i want to disable the parent window and enable it when i close the popup window.
    can anyone please help me with a possible approach.
    Thanks,
    Orton
    Edited by: orton607 on Aug 25, 2010 2:19 PM

    jari,
    I have a problem with this modal window approach and I have noticed. The thing is I am able to open up a popup window which is a simple data entry form. In this form i have the button Create which calls a javascript function and then an pl/sql insert process.
    Below is the javascript function for the button create
    function createNew()
    doSubmit('CREATE');
    alert('Successfully inserted the record. Click OK to close popup window and to \n view details of the new inserted record please select the table on parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    }The problem, i have is when i open up a popup window in this window when I click on the create button, its again opening up a new empty window. i don't understand what might be the problem.
    can you please help me out with this one.
    thanks,
    orton
    Edited by: orton607 on Aug 25, 2010 4:19 PM

  • How to disable parent window while popup window is coming

    Hi,
    I am working on Oracle Applications 11i.
    I am able to get the popup window using the Java script in the controller.
    Please see the below code for the reference.
    String pubOrderId = pageContext.getParameter("orderId");
    StringBuffer l_buffer = new StringBuffer();
    StringBuffer l_buffer1 = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    l_buffer1.append("/jct/oracle/apps/xxpwc/entry/webui/AddAttachmentPG");
    l_buffer1.append("&retainAM=Y");
    l_buffer1.append("&pubOrderId="+pubOrderId);
    String url = "/OA_HTML/OA.jsp?page="+l_buffer1.toString();
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    But here the problem is, even though popup window is there, i am able to do the actions on the parent page.
    So how to disable the parent page, while getting the popup window.
    Thanks in advance.
    Thanks
    Naga

    Hi,
    You can use javaScript for disabling parent window as well.
    Refer below link for the same:
    http://www.codeproject.com/Questions/393481/Parent-window-not-disabling-when-pop-up-appears-vi
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

  • How to populate a Value in popup based on value selected in Parent window

    Hi Gurus,
    I have done a custumization to generate a PDF report for a given DocType and Document ID.
    I have 2 fields in xxxQuoteDevPG.xml (Parent Window) called DocType and Document Number.
    Doctype is dropdown list which has 2 values i.e. Sales Quote and Manual SOW Number and Document Number is a text field with search option.
    when i select the doctype as Sales Quote and search for docnumber , i will get a popup where i have "Search By" dropdown list in this i have 2 values i.e "Quote Number" and "Customer PO".
    When i select a Sales Quote as Doctype i need to populate Quote Number as defualt in Search by dropdown list.
    and When i select Manual SOW Number from parent window i need to defualt Customer PO in popup.
    Now it is always shows Quote Number as defualt one for the doctypes.
    Actually thr is only one controller atatched to xxxQuoteDevPG.xml and popup is a OA Region.
    Can somebody help me on this issue.
    Thanks,
    MMR

    This should be a custom java class containing that method.
    Try on java or jdbc forum - Java Database Connectivity (JDBC) , Java Programming

  • Closing Report Preview window closes all parent windows

    I have a form 6.0 calling a report 6.0 with several user parameters using run_report_object in preview mode. After the finishing previewing, the user closes the report preview window. Then the preview window closes all the parent windows.
    Need help!
    1) The parameters are char, date and number types.
    2) I don't have a parameter form. I take out the high-light of the parameters on the parameter form and the parameter form title.
    3) I have several user parameters and without the parameter form i'm still able to pass the parameters from the Form.
    Thanks
    null

    report_other parameter can only take 255? characters.
    I use create parameter list and add_parameter instead.

  • Three links to open in parent window

    I have built a slider that includes three different links (one for each slide) that need to open in the parent window.  When I apply the Action using Open URL and target the parent window they still open in a new window. 
    Is there a way to configure the window.open action to target the parent window when an Edge Animate object is placed into an index file?
    Any help would be appreciated.

    1st, thank you so much for trying to help me with this.  I truly appreciate it.
    Window.location did not work either.  Left the target as parent too, still a new window.
    This is within a CMS editor that I have an iframe surrounding the index.html page holding the edge animate object for within our intranet.
    Jennie Lane
    Web Developer
    Fidelity Bank | Oklahoma Fidelity Bank
    P:  316.749.4412
    www.fidelitybank.com<http://www.fidelitybank.com/>

  • How to pass the data from a pop up window to the parent window

    Hi All,
    I have a jsp page which contains a add button, while clicking it a popup will come out(which is a another jsp page). There are some input fieldsand a submit button. Now how could I send the data from the pop up to the parent winow. Also I have to check that if the pop up is open and I click add button then another pop up must not open.
    Plz reply its urgent
    Thanks and Regards
    Rajib Sharma

    Thanks for the reply
    But it not worked
    I have a jsp page and the popup is also a jsp page the data that is passed from the popup window to the parent must be send to the server from the parent window to get a data from the data base as search result. Its of no use to get it as js data
    Thanks and regards
    Rajib Sharma

Maybe you are looking for

  • IMac (on Ethernet) Can No Longer Stream to Airport Express (on WiFi)

    After years of reliable service, all of a sudden I cannot stream music from iTunes on my iMac, via my Airport Express, to my stereo system. First, a bit about my configuration:    * iMac connected via Ethernet to a wireless router (D-Link DIR-655).  

  • After updating to iOS 8.1.3 I have no cell service

    Since updating to iOS 8.1.3 my iPhone 6 is no longer working. I can't make or receive call. It says that I have No service.

  • Good Software for G3 and Tiger

    I am about to recieve an iBook G3. And will upgrade it to Tiger. And it seems to be a little difficult to find software that works on a G3, I would like to know if any of the apple community knows of any good free/paid software. I would appreciate yo

  • Outputting a data point every second

    I want to output a data point every second to an excel sheet. I got it so that it only outputs one accumlated data point. Each data point includes a timestamp, rate, and volume. Attached is my VI. Solved! Go to Solution. Attachments: PumpDriver Test

  • Maximum length of query string for functions return a SELECT

    Hi all, I have a report that gets it's SELECT statement from a function, instead of being coded into the region. All was well but I suspect now I'm blowing some kind of limit as I'm getting an error :      ORA-06502: PL/SQL: numeric or value error