HOWTO updating table after closing a popup

With the help of JDev 11.1.1.3

I have a table and a popup. The table is filled with chronogram a datacontrol.
The popup has a form indicating the details of the selected record in the table. I also use this popup to create new records.

I have problems when you press the 'OK' button in the dialog box. The record is saved in the database, a commit is executed but my table does not show the new record. I need to press F5 before recording.
I tried to set a partialTrigger at the table of the popup, but it does not work.

This is the dialogEvent code:
    public void enqueteListener(oracle.adf.view.rich.event.DialogEvent dialogEvent) {
       if(dialogEvent.getOutcome() != DialogEvent.Outcome.no) {
         BindingContainer bindings =  BindingContext.getCurrent().getCurrentBindingsEntry();
         OperationBinding operationBinding = bindings.getOperationBinding("Commit");
         operationBinding.execute();
         
         operationBinding = bindings.getOperationBinding("Execute");
         operationBinding.execute();
       }
       else {
         BindingContainer bindings =  BindingContext.getCurrent().getCurrentBindingsEntry();
         OperationBinding operationBinding = bindings.getOperationBinding("Rollback");
         operationBinding.execute();
       }
    }
As you can see that the commit is executed and after that I run the Execute to refresh the table, but it doesn't seem to work...

How can I get that I have is more useless to press F5 if the record show upward directly in the table after click on the OK button in the pop-up?

You add partial trigger to the table in your code. If your table is related to an attribute in the bean you can add

RequestContext.getCurrentInstance().addPartialTarget(getTable());

where getTable() returns the component "richeTableau". If you do not link the table to the bean, you can search the tree of components for the id of the table to get the part.

Timo

Tags: Java

Similar Questions

  • 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

  • Firefox claims she is already underway and will let me start a new session after closing of

    I had this problem intermittently on my Dell XPS 8000 and my laptop HP nx7400. Dell runs the latest version of Windows 7 Pro and HP running XP Pro (fully updated). After closing a session of Firefox and other applications running, Firefox won't let me open another session, saying that "Firefox is already running... Please close the session... "This is not an exact quote, but you get the idea. CTRL-ALT-DEL and all other conventional means do not work and I have to reboot the system. It is a royal pain... and I need a pain relief! Any suggestions? I can go back to an earlier version of Firefox until I see a solution... is not bad, but I really like 4.0, and I do not look back in the 'progress '.

    Thank you.

    Tom

    Looks like it is suspended when you quit, and then later try to restart Firefox.

    • How to stop the currently running Firefox process

      • In the Task Manager, firefox.exe will appear in the processes tab
    ?
  • See: http://kb.mozillazine.org/Kill_application
  • Windows 7 users: http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576
  • What can cause the hang out of Firefox
  • You may need to try the Mode without failure of Firefox
  • You need to update the following. The Plugin version (s) below has / have been submitted with your question and is obsolete. You need to update in order to avoid the known security issues with the version (s) that you have installed. Click on 'more system info... '. "to the right of your question to see what was included with your question.

    • Next-generation Java plug-in 1.6.0_24 for Mozilla browsers
    1. Check your plugin versions on one of the following links:

    2. Update the Java plugin to the latest version.
  • region of refresh on the page parent after closing popup inframe

    Hello

    I have parent page with several regions, and one of the reports is related popup to another page using inframe. All these are works fine but now iam trying to a parent region partially regenerate after closing the window contextual inframe, I tried apex.submit (region1) but it does not work? no idea how can I update this after the closure of the window popup?

    Best regards and thank you

    Hi Gor_Mahia,

    Gor_Mahia wrote:

    Here are the details,

    application ID = 46268

    page ID = 13

    demo123/demo123

    proj2010 = workspace

    Use the links in the second column IR

    Once again thanks for your time.

    Check your application now. The interactive report is refreshing on the closure of the modal dialog box using the method of dynamic, such action described in the blog post:

    Monkey on Oracle: Modal popup with dynamic Actions

    Here are the changes:

    • Edited your action dynamic and value:

    In the section "Advanced":

    Scope of the event: Dynamics

    In 'true Actions:

    Action edited your "run the Javascript Code" and "Code" to modified:

    From:

    /* prevent default behavior on click */
    var e = this.browserEvent;
    e.preventDefault();
    /* Trigger JQuery UI dialog */
    var horizontalPadding = 30;
    var verticalPadding = 30;
    $('