Problem refreshing the popup

ADF11g:
I have problem in refreshing the popup.

On the homepage, there is a table and a column of this table, I put commandImageLink one click on this image that I supposed to open a popup where I display the result of information.

during the first click on this image, I am able to show the result correctly, but if I change the line and try to click the image once again, of that I am not able see the new result .it antique watch. OnClick, I checked the new result values are extracted by the server, but not reflecting does not Popup.

Yet one thing i course is only the first time when I click on the image goes to the action method and then open popup but at next until it clicks fisrt popup opens and then call the action method.

< af:column sortable = "false" headerText = "Actions".
rendering = "true" width = "50" >
< af:panelGroupLayout layout = "horizontal" >
"< af:commandImageLink icon="/image/info.jpg ".
shortDesc = "Info".
partialSubmit = "true" action = "#{IssueActionBean.refresh_ContentRevisionInfo1} '"
launchListener = "#{IssueActionBean.getRevisionLauncherListener}" >
"" < af:showPopupBehavior popupId = ": popupinfo".
triggerType = "click on" / >
< / af:commandImageLink >
"< af:commandImageLink icon="/image/checkinout.jpeg ".
shortDesc = "Check in/out" >
"" < af:showPopupBehavior popupId = ": popupMenu.
triggerType = 'action '.
align = "beforeStart" / >
< / af:commandImageLink >
< / af:panelGroupLayout >
< / af:column >
< / af:table >
< af:popup id = popupFetchListener = "#{IssueActionBean.getfetchRevisionLauncherListener"popupinfo"}" >
< af:panelWindow title = "information content".
inlineStyle = "width: 600px; height: 500px; ">

< af:table value = "#{bindings.documentRevisions.collectionModel} '"
var = 'row' id = 'popupinfo1 '.
Rows = "#{Bindings.documentRevisions.rangeSize} '"
emptyText = "#{bindings.documentRevisions.viewable?" "{"No line yet.":"Access Denied."}"
fetchSize = "#{bindings.documentRevisions.rangeSize} '"
selectedRowKeys = "#{bindings.documentRevisions.collectionModel.selectedRow} '"
selectionListener = "#{bindings.documentRevisions.collectionModel.makeCurrent} '"
rowSelection = 'single '.
inlineStyle = "width: 750px; height: 250px; margin: 20px; ">
< af:column sortProperty = "revLable" sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.revLable}" >
< af:convertNumber groupingUsed = "false".
pattern="#{bindings.documentRevisions.hints.revLable.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "release date".
sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.releaseDate}" >
< af:convertDateTime pattern="#{bindings.documentRevisions.hints.releaseDate.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "expirationDate".
sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.expirationDate}" >
< af:convertDateTime pattern="#{bindings.documentRevisions.hints.expirationDate.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = 'status' sortable = "true".
headerText = "#{res}" >
< af:outputText value = "#{row.status}" / >
< / af:column >
< af:column sortProperty = 'fact' sortable 'true '.
headerText = "#{res}" >
< af:outputText value = "#{row.did}" >
< af:convertNumber groupingUsed = "false".
pattern="#{bindings.documentRevisions.hints.did.format}"/ >
< / af:outputText >
< / af:column >
< af:column sortProperty = "docName" sortable = "true".
headerText = "#{res}" >
"< af:goLink destination =" #{row.docURL} "text =" #{row.docName} ".
targetFrame = "_blank" / >
< / af:column >


< af:column sortProperty = "docURL" sortable = "true".
headerText = "#{bindings.documentRevisions.hints.docURL.label}" >
< af:outputText value = "#{row.docURL}" / >
< / af:column >
< / af:table >
< af:panelFormLayout >
< / af:panelFormLayout >
< / af:panelWindow >
< / af:popup >



public String refresh_ContentRevisionInfo1() {}
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute ();
Bindings.Refresh ();
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
iterBind.executeQuery ();
iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);
Returns a null value.
}

{} public void getRevisionLauncherListener (LaunchEvent launchEvent)
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
Object result = operationBinding.execute ();
Bindings.Refresh ();
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("documentRevisionsIterator");
iterBind.executeQuery ();
iterBind.refresh (DCIteratorBinding.RANGESIZE_UNLIMITED);


}


Thanks for any help.
Katie

Try to set the attribute contentDelivery of the pop-up window to layzUncached and see if that helps.

If this is not the case, try to send a ppr to the pop-up window.

Timo

Tags: Java

Similar Questions

  • Refresh the popup programmatically

    Hello

    I use Jdev 11.1.1.6

    I have a FA: table in a popup that is to pick up a few lines... I added a link delete next to each line through links.

    When I click on the link delete for a particular line... the line is removed and the window closes automatically.

    To avoid this, I put the part delivery of property = true for the link delete...

    Now when you click on remove link line gets deleted but context does not close which is very good...

    Now the problem is... the other buttons on the pop-up window are not working as record, etc...

    I like to write code for the link delete where by program I will delete the line and I want to update the popup as well.

    Can someone let me know what is the code to update the popup programmatically?

    Thank you

    Rajesh.

    User, things to check:

    is the autoCancel property for the popup?

    If so, set it to false and try to delete a line without defining the partial submission button.

    Timo

  • How to refresh the Popup form, when it is in mode insert create?

    Hello

    When I press on Jsp page it gives dialog popup (Dept table) is to create the insert mode button, am going to some input values and close the pop-up window (not committed or cancel).

    and the call button again once it appears as a mode of updating...

    I use Jdeveloper 11.1.2.3.0 and Oracle10g...

    Hope this answer.

    you have set the popup contentDelivery to be lazyUncached?

  • Problem refreshing the page parent when a modal window is closed.

    I have the page that opens a modal window of a column in report link. In the modal window, I want to be able to make my changes and press a button so that the modal window is closed and the parent page is refreshed to display the details changed in the report. In Firefox all works well, but IE I get the error message 'Window.opener.location is null or not an object ".

    When I comment out window.opener.location.href = window.opener.location.href; the modal window is closed without error, but I want to refresh the parent page with the changes in the modal window.

    I'm afraid that my java script is very limited (the code is inspired other peoples examples.)

    Page parent I call this function of a column in report link to display a modal window. Sets the hidden field of the SAVE_STATUS to the landing page of "n".

    function modalWin (pshow)
    {
    var url;
    URL ='f? p = & APP_ID.: "+ pshow +": & SESSION. : SAVE_STATUS: NO;

    If (window.showModalDialog) {}
    window.showModalDialog (url, "name", "dialogWidth:650px; dialogHeight:700px"); }
    else {}
    Window.Open (url, "name", "height = 700, width = 650, toolbar = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no, modal = yes");
    }
    }



    Landing page (modal window)

    Header HTML.
    Function closeWindow should refresh the parent page and close the modal window.

    < base target = _self >
    < script language = "JavaScript" type = "text/javascript" >
    <!--

    htmldb_delete_message = "'DELETE_CONFIRM_MSG" ";

    function closeWindow() {}
    If (document.getElementById("SAVE_STATUS").value == 'Y')
    {
    Window.opener.Location.href = Window.opener.Location.href;
    Window.Close ();
    }
    }
    ->
    < /script >


    Attribute Html Body .
    onLoad = "closeWindow (); »


    P_UPDATE_DATE process called of the button changes. Games of the SAVE_STATUS flag 'Y' for the onload in the html body.

    UPDATE event
    SET event_date =: P5001_EVENT_DATE
    WHERE contract_reference =: P330_EVD_CONTRACT
    AND event_number =: P330_EVD_EVENT_NUMBER;

    : SAVE_STATUS: = 'Y ';


    Thank you in advance, I'll take a look when back in the office on Monday.

    Pete has soon

    Hi Pete,.

    In my view, that the refreshment of your page should happen on your parent Page. You can also check the JQueryUI there a beautiful modal dialog Widget.

    --
    Chris

  • How to refresh a popup before showing

    I have a button that displays a pop-up window and it works fine.

    < af:commandButton text = 'Customize' id = 'customizeButton' >

    < af:showPopupBehavior popupId = "dataFilterPopup" / >

    < / af:commandButton >

    I added a partialTriggers for the popup, then when the button is clicked it would refresh the pop-up window:

    "< af:popup id ="dataFilterPopup"contentDelivery = binding =" #{pageFlowScope.myBean.popup "lazyUncached"} "popupFetchListener =" #{pageFlowScope.CountryReportBean.myBean.popupFetchAction} "partialTriggers ="customizeButton">

    But the content of the pop-up window is not updated.

    JDev 11.1.1.6.0

    Rather than refresh the popup Refresh dialog box or whatever your first item to layout on the shortcut menu.

    Timo

  • Refresh the data in the 'main' page update Popup

    I have several pages with links URLs to popups to make updates of the data on the 'main' page
    My problem is that once the user modifies the data through the popup page, they must click the Refresh button to get this area for update on the "main" page to reflect the changes, they did on the shortcut menu.

    Is it possible to have a page automatically refresh when data are changed on a separate page (popup)?

    Thank you very much for your understanding.
    -Reid

    Hey Reid,

    Hope this link will help you regarding what you are looking for:

    Re: Update of Popup window

    Kind regards
    Blabla

  • Refresh the table after popup

    I have a popup that the user gets when they click my button 'Add '. The form inside the pop-up window is linked to the same database as the table.
    The table that his partialTrigger is configured for the popup and when I opened the popup, I see the new row in the table which is ok. However, when I click the ok button in my popup and data are saved in the database (with a commit), the table does not get updated.
    How can I do so?

    These are fragments of my code:

    the table:
    <af:table value="#{bindings.RekeningFullVO1.collectionModel}"
                                var="row"
                                rows="#{bindings.RekeningFullVO1.rangeSize}"
                                emptyText="#{bindings.RekeningFullVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                fetchSize="#{bindings.RekeningFullVO1.rangeSize}"
                                rowBandingInterval="0"
                                filterModel="#{bindings.RekeningFullVO1Query.queryDescriptor}"
                                queryListener="#{bindings.RekeningFullVO1Query.processQuery}"
                                filterVisible="true" varStatus="vs"
                                selectedRowKeys="#{bindings.RekeningFullVO1.collectionModel.selectedRow}"
                                selectionListener="#{bindings.RekeningFullVO1.collectionModel.makeCurrent}"
                                rowSelection="single" id="t1"
                                partialTriggers=":::popAdd">
    the pop-up window:
    <af:popup id="popAdd" popupFetchListener="#{RekeningBean.addPopup}"
                      contentDelivery="lazyUncached"
                      popupCanceledListener="#{RekeningBean.cancelAdd}">
                <af:dialog id="dlgAdd" title="Rekening toevoegen" dialogListener="#{RekeningBean.addListener}"
                        affirmativeTextAndAccessKey="Toevoegen" cancelTextAndAccessKey="Annuleren">
    RekeningBean:
        public void addPopup(PopupFetchEvent popupFetchEvent) {
          BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
          OperationBinding createInsert = (OperationBinding) bindings.get("CreateInsert");
          createInsert.execute();
          
          if(createInsert.getErrors().size() > 0) {
              List errors = createInsert.getErrors();
              Iterator it = errors.iterator();
              while(it.hasNext()) {
                  System.out.println("Error: " + it.next());
              }
          }
        }
        
        public void cancelAdd(PopupCanceledEvent popupCanceledEvent) {
          BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
          OperationBinding createInsert = (OperationBinding) bindings.get("Rollback");
          createInsert.execute();
          System.out.println("Rollback");
        }
        
        public void addListener(DialogEvent dialogEvent) {
          if(dialogEvent.getOutcome().name().equals("cancel")) {
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding createInsert = (OperationBinding) bindings.get("Rollback");
            createInsert.execute();
            System.out.println("Rollback");
          }
          else if(dialogEvent.getOutcome().name().equals("ok")) {
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding createInsert = (OperationBinding) bindings.get("Commit");
            createInsert.execute();
            
             System.out.println("Commit");
          }
        }
    So when I run the validation, the table must be informed that the data has been updated but who can't... My popup closes and the blank line in the table remains the same. When I press F5 to refresh the page, I see my data. How can I do this without making the F5?

    I guess the problem is that the trigger part that you put on the table gets called before validating the data in the code of the bean.
    Try adding a partial trigger in the bean code that refreshes the table.
    Put an ID to your table (or link the table to the bean), then use the code below to trigger an update after the transaction commit or rollback.

    
               UIComponent ui = JSFUtils.findComponentInRoot("tableid");
               RequestContext.getCurrentInstance().addPartialTarget(ui);
      
    

    Here is the code for the findCommponentInRoot method:

        /**
         * Locate an UIComponent in view root with its component id. Use a recursive way to achieve this.
         * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent
         * @param id UIComponent id
         * @return UIComponent object
         */
        public static UIComponent findComponentInRoot(String id)
        {
            UIComponent component = null;
            FacesContext facesContext = FacesContext.getCurrentInstance();
            if (facesContext != null)
            {
                UIComponent root = facesContext.getViewRoot();
                component = findComponent(root, id);
            }
            return component;
        }
    
        /**
         * Locate an UIComponent from its root component.
         * Taken from http://www.jroller.com/page/mert?entry=how_to_find_a_uicomponent
         * @param base root Component (parent)
         * @param id UIComponent id
         * @return UIComponent object
         */
        public static UIComponent findComponent(UIComponent base, String id)
        {
            if (id.equals(base.getId()))
                return base;
    
            UIComponent children = null;
            UIComponent result = null;
            Iterator childrens = base.getFacetsAndChildren();
            while (childrens.hasNext() && (result == null))
            {
                children = (UIComponent) childrens.next();
                if (id.equals(children.getId()))
                {
                    result = children;
                    break;
                }
                result = findComponent(children, id);
                if (result != null)
                {
                    break;
                }
            }
            return result;
        }
    

    Timo

  • I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not remove or add the program.

    I had a problem with slow, so I used "reset". The popup ran forever so I stopped it. Now I can not use, remove or add the program. How should I proceed?

    TIA,
    BWSwede

    Try to create a new profile.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but make sure not to copy corrupted files.

    What problems do you have that you want to reset Firefox?

    Firefox creates a new folder of old data of Firefox on the desktop?

    If reset you Firefox and a new profile is created and some of your data (bookmarks, passwords, cookies, form data) is automatically imported and your current profile will be moved on the desktop (old data of Firefox).

  • Refresh the Parent page after closing the popup

    Hello

    I open the pop for that insert data and then I want to see the page parent page refresh after closing of pop either perform cancel or closing popup using X.

    try like this

    < af:commandLink text = ' #{rank. " DEPTNO}"id ="cl1"partialSubmit ="true"returnListener =" #{backingBeanScope.backing_DeptDBFace.backFromPopup} ">
    "" < af:showPopupBehavior popupId = ': p1 ' triggerType = 'action' / >
    < af:returnActionListener value = "10" / >
    < / af:commandLink >

    When this method ({. backing_DeptDBFace.backFromPopup}) contains the PON - Stmts which are not executed after the closure of the pop-up window

    Thank you

    Venaktn

    Hello

    Try to use the popupCanceledListener. (af:popup)

    This event will happen only when you click the X or cancel the popup.

    Kind regards

    Ruben

  • Refreshing the page does not not after the closing of popup.

    I have a main page that has a list that includes a list of elements. And there is a button create that opens a popup to create a new line. I have 2 buttons on the popup, create and cancel.

    The page contains a workflow in which I have an activity back to the home page.

    Action = "return" the Cancel button on the shortcut menu to return to the home page.

    But when I click on cancel, I will return to the home page but the page is empty.  I have partialTriggers on the homepage of listView set the id of the button.

    Help, please.

    I had partialTrigger the button on the shortcut menu.

    Instead if I set the partialTrigger for the popup itself, refresh works fine.

  • refresh the report after you close the modal popup

    Hello

    I try to call page editing as popup modal as in this example below.

    http://Apex.Oracle.com/pls/Apex/f?p=45420:3:0:no:

    It works fine, but after you change/update a registration and closing of the edit page, is not refresh the main report page (first). How can I change so it refresh the report calling when closed. Please NOTE: I do not want to refresh the whole page, but only the report after you close the page modal popup.

    Apex 4.2

    Thank you in advance... regards

    It worked, now missed me the branching code and the parameter by js... Thank you

  • problem with JQuery TAB when I refresh the Page

    Hello

    I use a JQuery tab and I have following tabs under the present.

    tab1
    tab2
    tab 3

    When I click on tab1, tab2, tab3 individually it works fine.

    problem... Now, when I click on tab 3 and then I refresh the page, the control returns to the first tab tab1.

    what I want... If I'm on tab2, and I update the page... control must remain on the same tab (i.e. on tab2)... control should not go back to tab1 *(the first tab) *.

    Thank you
    Deepak

    Hello

    This might help
    http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:195800346705831

    Kind regards
    Jari

  • The Popup window refresh

    I have a pop up window that allows an employee to apply for compensation. The request is treated as a collection. For now, I have a button in the area that I use to save the form, but the user must always close the pop-up (manually) and manually refresh the parent page to see the changes.

    I was looking at this thread:
    Re: close the window popup and refresh the parent window

    but I can't get things to work. If I use the code, my popup closes without saving changes and updating takes me back to page 1 to my request - neither of which are behaviors you want.

    Can someone help me?

    blarman74 wrote:
    I have a pop up window that allows an employee to apply for compensation. The request is treated as a collection. For now, I have a button in the area that I use to save the form, but the user must always close the pop-up (manually) and manually refresh the parent page to see the changes.

    I was looking at this thread:
    Re: close the window popup and refresh the parent window

    but I can't get things to work. If I use the code, my popup closes without saving changes and updating takes me back to page 1 to my request - neither of which are behaviors you want.

    Can someone help me?

    Hi blarman,

    I do not understand how this example you posted on apex.oracle.com covers the original thread you linked to. For example, I don't see where you call the popup of? is page 1 the popup? What is the parent page?

    By the way, the solution that I put forward in the thread you linked does not work for me in a project, I've been working at this moment, I can't explain why. But as a work-around, in the success of the DTF process message you can just put in:

    
    

    This will cause the window to close once the DML process succeeds. And then submit the page parent, causing a refresh. You can do an alert of a description to inform the user that the process was a success.

    Van
    Trent

  • Refresh the page Popup

    Hi guys,.

    This is the scenario:
    When the user clicks the button on the Home Page a PopUp page opens, where the user enters data (for example EmpNo and EmpName - on the PopUp Page) in a form and click on the button create, when the user clicks on the button to create the PopUp page closes and a record is inserted into the database.

    On the main page (which also contains text of the EmpNo and EmpName fields) when I look at the list EmpNo, I see not the new EmpNo added, but when I refresh the home page and select the drop of EmpNo, then I see the new EmpNo I added

    Is there a way to jump the refreshing part of the Home Page
    and also have the new data displayed on the home page once the popup page form is created on the click on the button create?

    Thank you for your help and suggestions
    Jesh

    Jesh,

    I have modified the page 3 and added popup "window.opener.location.reload (true)"; after the self.close in the outgoing javascript (create button).

    Thank you
    Matt.

  • Problem with display of the Popup details

    Hi friends,

    I designed a Taskflow. The taskflow image can be seen here.

    http://snag.Gy/afGa5.jpg

    In the Taskflow activity RowKeyStrPG use the viewobject EMPVO1. Once again in the page DeptPG, there is a popup which must be called by clicking the link. The pop-up window also uses the same view object EMPVO1. Here's the code to call the context menu.

    BindingContainer links is BindingContext.getCurrent () .getCurrentBindingsEntry ();.

    OperationBinding operationBinding = bindings.getOperationBinding("setCurrentRowWithKeyValue");

    Object result = operationBinding.execute ();

    System.out.println ("inside service");

    RichPopup popUpToShow = new RichPopup();

    RichPopup.PopupHints popUpHints = new RichPopup.PopupHints ();

    this.getPopUp2 () .show (popUpHints);

    But when the popup opens always shows the first record rather than the selected details details. The link "setCurrentRowWithKeyValue" takes "#{pageFlowScope.empNo}" as the value and the value "#{pageFlowScope.empNo} ' is defined as the propertylistener of the DeptPG.

    If anyone can help as to why the view object does not query the selected employee

    Thank you

    Or if you do not want to add iterator then just get the BindingContainer of page 2 and then get iterator binding against it

    See-

        /**     * Method for taking a reference to a JSF binding expression and returning
    
         * the matching object (or creating it).
    
         * @param expression EL expression
    
         * @return Managed object     */
    
      public static Object resolveExpression(String expression) {
    
            FacesContext facesContext = FacesContext.getCurrentInstance();
    
            Application app = facesContext.getApplication();
    
           ExpressionFactory elFactory = app.getExpressionFactory();
    
            ELContext elContext = facesContext.getELContext();
    
            ValueExpression valueExp = elFactory.createValueExpression(elContext, expression, Object.class);
    
            return valueExp.getValue(elContext);
    
        }
    

    See using a page id in your DataBinding.cpx file and call that

            // Pass page usage id from DataBinding.cpx file- replace sample_view_view1PageDef
    
            BindingContainer bindings = (BindingContainer) resolveExpression("#{data.sample_view_view1PageDef}");
    
           DCBindingContainer dcBindings = (DCBindingContainer) bindings;
    
           DCIteratorBinding iter = (DCIteratorBinding) dcBindings.get("Iteratorname");
    
           iter.setCurrentRowWithKeyValue("KeyValue");
    

    Thank you

Maybe you are looking for

  • First: Journal?

    A few days ago, I saw a note on how to make a rose on the first and now I can't find it again... So, where is it?

  • How to access the pci 9054 with labview

    Using pci9054 for communication, how can IAM I configure pci 9054 with labview.

  • SAN HQ of credentials for the server

    I'm a bit confused as the HQ SAN server credentials...  I have installed and configured a new HQ SAN excecution 3.1.0 Server everything is in place and running in parallel to our 3.0.1 existing server.  I can run the app and authenticate with my cred

  • BlackBerry smartphone Blackberry Bold 9900 bad update OS 7 Bundle

    Hello. Tried an update of the operating system yesterday, and there was a glitch somewhere. Now affected by a Flash of the ULA then goes to the white screen of death on an App Error 200. Can't do a restore via the software DT, as when the phone is on

  • Creative cloud for students and devices / computer

    HelloI am a student who became passionate last year on photography and cinema, and I am considering buying the composition of the creative cloud for students. I would use the apps on my mac to University and my home mac and perhaps sometimes my iPhon