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.

Similar Messages

  • 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.

  • Processing Child form on parent window..

    Hi.. anyone here has any idea how to process a child form on a parent window.. like for example, i click on submit button on the child window, and the form directs to another JSP file which its results should be display on the parent window.. anyone has any idea?

    Hi!
    I had similar problem, I used frames and needed to submit a form from a frame to parent window. I used property "target" of form to specify where I want this form to be submitted, like this:
    function submit() {
         form.target = "name of the target where to submit";
         form.submit();
    or something like this:
    <html:form action="/blahblah" target="name of the target where to submit" method="post">
    hope it helps
    Vassili Skarine

  • 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

  • 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.

  • 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>

  • 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

  • Update cfdiv in Parent Window from popup window

    I need help trying to update a cfdiv in the parent window
    from a popup window.
    The parent window displays a color (red by default)
    The popup gives you a radio selection which would let you
    select a different color.
    I need to have this submit button update the cfdiv called
    "main" in the parent window by lby displaying the corresponding
    color AND I want this window to hide.

    <!--- POPUP.CFM --->
    <cfif NOT structkeyexists(form, 'color')>
    <cfform action="popUp.cfm" method="post" name="form1">
    <cfinput type="radio" name="color" value="red"
    required="yes">Red
    <cfinput type="radio" name="color" value="blue"
    required="yes">Blue
    <cfinput type="radio" name="color" value="green"
    required="yes">Green
    <br />
    <cfinput type="submit" name="submit" value="submit">
    </cfform>
    <cfelse>
    <script type="text/javascript">
    updateColor(<cfoutput>'#form.color#'</cfoutput>);
    </script>
    </cfif>
    <!--- MAIN PAGE --->
    <!--- Add this js function to the HEAD section of the
    page: --->
    <script type="text/javascript">
    updateColor = function(color){
    document.getElementById('main').innerHTML = color;
    ColdFusion.Window.hide('mywindow');
    </script>
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Passing Value from a Popup Window Back to the Parent Window

    I am using JSF. I try to pass a value that is entered by users in the popup window back to a text field in the parent window.
    quote: document.forms[ ].elements[ ] is null or not an object.
    The relevant code snippets are shown below. The screen1.jsp is the parent window:
             <script language="JavaScript1.1">
               function doPopup(source)
                    popup = window.open("externalFilePopup.jsp",
                        "popup",
                         "height=300,width=200,toolbar=no,menubar=no,"                    + "scrollbars=yes");
                    popup.openerFormId = source.form.id;
                    popup.focus();
               </script>
    <h:outputText value="Enter the external system file name"/>        <h:inputText value="#{dataManagementBean.ip}" size="18" />
    <h:commandButton value="..." onclick="doPopup(this); return false;" />
    ..........The externalFilePopup.jsp is the popup window:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].elements[ formId + ":ip" ].value = value;
                   window.close();
            </script>
         <h:outputText value="IP Address: "/>
         <h:inputText size="25" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('#{dataManagementBean.ip}');"/>
            .......... The script error occurs when I click on this OK button.
    Please point out the mistakes in my code. Thank you.

    I have made some modifications to the code in the popup window. The error reported in my previous posting is gone. But, I still have several problems:
    1. syntax error in the popup window jsp page: line 45, char 21, syntax error, ..., Do you want to continue running script on this page?2. The popup window does not close after I click on the OK button that I coded in the popup window jsp.
    3. The value that I entered in the popup window eventually gets passed back to the text field in the parent window only if I re-run the application.
    The relevant JavaScript code snippets are:
            <script language="JavaScript1.1">
                function doSave( value )
                   var formId = window.openerFormId;
                   opener.document.forms[ formId ].form[ formId + ":ip" ].value = value;
                   window.close();
            </script>
                                       <h:outputText value="IP Address: "/>
         <h:inputText size="25" id="ip" value="#{dataManagementBean.ip }" required="true"/>
         <h:commandButton value="OK" onclick="doSave('ip'); return=false;"/>
    ......What are the mistakes that I made?

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • How do I populate a popup window with data from the parent window

    I am brand new to JSF so please help me. I have a JSF page where users enter some search criteria and it displays the results in a matrix table. I need to have a PRINT button or link on this page that pops up a new window that displays the same data but in a printer-friendly format.
    The parent page is already created and works fine. Now, what is the best way to populate the same data in the popup? The data is stored in a hashmap and retrived by a managed bean with session scope. Below is the XHTML code for displaying the table in the parent page.
    <tbody>
                             <c:forEach items="#{inventoryManagedBean.inventoryColors}" var="row">
                                  <tr id="matrixColor">
                                       <c:forEach items="#{inventoryManagedBean.sizeList}" var="column" varStatus="cellStatus">
                                            <c:if test="#{cellStatus.index == 0}">
                                                 <th width="70px"><h:graphicImage value="../graphics/styles/#{row.color}.jpg"
                                                      alt="#{row.color}" width="70" height="40"></h:graphicImage></th>
                                                 <th width="100px"><h:outputText value="#{row.colorDescription}" />
                                                 <h:outputText value="#{row.color}" /></th>
                                            </c:if>
                                            <td width="70px"><c:if
                                                 test="#{inventoryManagedBean.inventoryMap[row.color][column.size] != null}">
                                                 <c:if test="#{inventoryManagedBean.inventoryMap[row.color][column.size].label != '-1'}">
                                                      <span class="matrixText"><h:outputText
                                                           value="#{inventoryManagedBean.inventoryMap[row.color][column.size].label}"
                                                           title="#{inventoryManagedBean.inventoryMap[row.color][column.size].title}" /> </span>
                                                      <t:htmlTag value="br" rendered="#{userManageBean.user.loggedIn}" />
                                                      <a4j:region renderRegionOnly="false">
                                                           <h:inputText
                                                                value="#{inventoryManagedBean.inventoryMap[row.color][column.size].quantityOrdered}"
                                                                rendered="#{userManageBean.user.loggedIn}" maxlength="6" size="6">
                                                           </h:inputText>
                                                      </a4j:region>
                                                 </c:if>
                                                 <h:outputText value="Call"
                                                      rendered="#{inventoryManagedBean.inventoryMap[row.color][column.size].label == '-1'}" />
                                            </c:if> <h:outputText value="N/A"
                                                 rendered="#{inventoryManagedBean.inventoryMap[row.color][column.size] == null}" /></td>
                                       </c:forEach>
                                  </tr>
                             </c:forEach>

    call javascript window.open("pagename"); & add some printer button there,
    and put rendered attribute to button & in backing bean generate boolean getter setter for variable use same variable in jsp printer button in rendered attribute, in bean constructor pass some parameter throuh jsp page,
    if parameter is match then it rendered attribute to true for button else not,
    it means that in parent window you can not see printer button, but in same window in popup you will see printer button,
    good luck
    <h:commandButton rendered="#{bean.renderedButton}"/>
    bean
    private boolean renderedButton= false;(generate getter setter)
    also pass parameter from UI to bean constructor

  • How to send data from popup window to parent window

    Hi,
    I need help some like this
    I have parent window ,in that i am clicking + button one dynamic row should add and one popup window has to diplay .Popup window contain 3 comboboxes and 5 text boxes. Once i am clicking OK button in popup window those values has to display at specified row in parent window
    Kindly help me ,
    Thanks
    jyothi

    See this
    http://www.oracle.com/technology/products/jdev/101/howtos/jsfdrilldown/index.html

  • Tab focus progressing to parent window from popup

    Hi,
    I am using JDeveloper 11.1.1.7.0 version.
    I have a bounded task flow with .jsff fragments and I am trying to call another bounded taskflow(with .jspx files) as "Run As Dialog" from this taskflow.
    Here I am able to set initial focus to the required input element using <af:document> tag's "initialFocusId" property. Up to this, it is working fine.
    When I tried to tab, cursor is moving to next fields as expected. But after completing all the fields and buttons in the popup, tab focus is progressing to the parent window links and buttons.
    Is there a way to block the cursor progression to parent window and make it to rotate within the popup window.
    Thanks,
    Gopal.

    This is a bug in ADF Framework. Filed a bug with ADF Framework and they have accepted this as a bug.
    I'll update this post once I get the resolution from ADF team.

  • Tables in popups not refreshing

    I'm having difficulty with some table refreshes within a popup. Here's my scenario. I have a window that displays a table. The user clicks edit, and the table is shown in an “edit” popup. At this point, if the user makes changes, clicks ok, then the table on the beginning page is refreshed correctly. To do this, I am using the following method to refresh the page fragement, AdfFacesContext.getCurrentInstance().addPartialTarget(this.getViewTablex());
    Here is the issue,
    The user chooses to edit the main table, and the edit popup appears. So far so good. The user then wants to add a new record, they click “Add” within the edit popup so I then show a new popup form where the user enters the fields for the new row. When they click ok on the "add" popup form, then the edit popup (from which they called the add popup) does not refresh the table with the newly added row. The row they added then appears as the first row in the edit popup.
    What further complicates this is that I have to validate the "edit" popup rows when they click ok, to make sure all the data is valid, so I can not do a commit on the underlying table until after the validation. But, I need the newly added row in the table (or view) in the edit popup as part of my validation.
    So, I have a table that makes use of an edit table popup that in turn makes use of an add form popup. But I cannot commit until I validate the edit popup. The problem is I’m not getting the newly added row that was created in the “add” popup to show up in my edit popup.
    Here is the add popup handler I’m using
    public void onAddxxxPopupFetchAction(PopupFetchEvent pPopupFetchEvent) {
    try {
    OperationBinding lOperationBinding =
    lBindings.getOperationBinding("CreateInsert");
    //If the Insert failed, return a "Severe" message.
    Object result = lOperationBinding.execute();
    if (!lOperationBinding.getErrors().isEmpty()) {
    return;
    } catch (Exception e) {
    public void addxxxDialogOKAction(DialogEvent pDialogEvent) {
    try {
    //refresh the page fragment.
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.getEditPopupTable());
    } catch (Exception e) {
    And here is the popup portions of the page fragment
    <af:popup id="addPopup" contentDelivery="lazyUncached"
    popupFetchListener="#{backingBeanScope.backing_ui_pages_Maintenance. onAddxxxPopupFetchAction }"
    popupCanceledListener="#{backingBeanScope.backing_ui_pages_Maintenance.onAddxxxPopupCancelAction}">
    <af:dialog id="addDialog"
    dialogListener="#{backingBeanScope.backing_ui_pages_Maintenance. addxxxDialogOKAction }"
    closeIconVisible="false">
    and for the edit popup;
    <af:popup binding="#{backingBeanScope.backing_ui_pages_Maintenance.editPopup}"
    id="editPopup">
    <af:dialog binding="#{backingBeanScope.backing_ui_pages_Maintenance.editDialog}"
    id="editDialog" closeIconVisible="false"
    dialogListener="#{backingBeanScope.backing_ui_pages_Maintenance.editxxxDialogOKAction}">
    I am using JDeveloper 11.1.1.6.0.
    Any help would be appreciated.
    thanks!
    Doug

    Seems like a PPR issue. Try have a partialTrigger corresponding to the OK button of add popup on the table in the edit popup.
    Thanks,
    TK

Maybe you are looking for

  • How do I convert a £ sign iN SQL..?

    hello. I know ORACLE SQL doesn't mind a £ sign (converts it to a hash in TOAD) but as I'm using a SELECT statement in a BI Publisher Data Template that is used to generate an XML file - the XML generator doesn't like it.. So. Could somebody please te

  • AP Vendor Master Data

    HI, Working on the AP Vendor Master Data requirement. Data is being pulled from LFA1, LFB1, LFBW and LFM1. For LFA1 found the datasource 0VENDOR_ATTR and could able to get all the fields from that. Can someone please tell what are the related datasou

  • RE: How to print the special characters in Smartforms

    Hi, Can you please let me know how to print "číslo" in Smartform output as it is getting printed as "císlo". I mean to say that special character "č" is getting printed as "c". Even I checkd the same in Slovakian language and same thing is happening.

  • Started having a problem updating Firefox in the usual way

    I have been using Firefox for a number of years without any problems, but the two last updates to 3.6.15 could not be installed automatically.

  • Documents in appointment Notes

    I often drop documents into the notes of an Outlook appointment so they are easy to find on the day.  Can I get these documents to sync to my BB9700? The notes show the document names but they are not 'openable'. If not, what's the best way to get th