Refresh the table after the creation of the new BO of Toplink

Hello

I have the following problem and I hope someone can help me. I use ADF11g/Taskflows with BOs TopLink-mapped (no ADF BC).

Consider the Taskflow (s) following:

the main activity is a (display) jsff page showing a table of BOs. From this point of view, two actions-defined results are called 'Edit' and 'create '. The edit action called an another Taskflow constisting of a pageFragment, showing the detailForm of the Soundtrack of data. This Taskflow has an input and output parameter (Soundtrack edit) and two are called "save" and "Cancel". Add Action calls a method called "createNewBO" first, and then calls the Taskflow mentioned also. Each Taskflow has ist own Bean managed in the pageFlowScope to work as a controller and DataControl to the TaskFlow and directly included views.

The edit action works fine. The action also add except that the table of the default activity of the first taskflow does not update after return from the second Taskflow. I tried to put the property of refreshment in the PageDef of all possible values, in combination with the RefreshCondition, but no combination works. I can do a manual refresh or change the sort then the new Soundtrack is shown in the table.

Is it possible to call a refresh of a jsff since a taskflow or I can force a refresh on entering the jsff?

I am really stuck and appreciate any help ;)

Friedrich

You can try this:

-on your taskflow diagram select the page that contains the table that you want to update, and add a Page parameter (from #{true} # {viewScope.refresh})
-in pageDef page add an invokeAction in executable files and that it points to methodAction which fills the iterator to update
-for newly created invokeAction, value refresh ifNeeded and condition of refreshment to #{viewScope.refresh}

This should refresh the iterator each loading of the page (fragment).

I hope this helps!

Pedja

Tags: Java

Similar Questions

  • 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

  • What is the best way to refresh the table after autosubmit (10.1.3.4)

    What is the best way to refresh the table after autosubmit?

    I have a page that contains a table where if one of the fields is changed it autosubmitted where the view object changes some attributes, based on the field having been changed. I need these modified attributes that appear in the table. But without doing anything, the only way to see these values is to cause the iterator updated table.

    I've been refreshing the table is having a method in a grain of beacking called "getSystemSettingIter.getCurrentRow ();". This seems to be a bit of a hack for me and I was wondering if there is a better way to get the table to update.

    Thanks in advance!

    Have you tried setting between the two partial page refresh?
    http://www.Oracle.com/pls/as111120/lookup?ID=ADFUI385

    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31974/web_form.htm#CACEIEEI

  • Updating of the table after insert shows empty cells

    Hello experts,

    I'm trying to insert some custom values of certain fields in a table displayed on my page. The table comes a VO based entity with a sequence number and a few constraints.

    The sequence numbers batteries managed automatically by the database.

    The entry fields are related to a bean managed to get the value with 'GetValue' and then I create a string for the entry. The string then gets cut in the VO as some attributes with the following SQL calculation example:

    REGEXP_SUBSTR (attribut3, "[^,] +' 1, 5")

    But it is on the ViewObject/database layer.

    After I call the method of the VO Impl to create the new line like this:

    Managed bean:

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

    operationBinding.getParamsMap () .put ("Value1", someInt);

    operationBinding.getParamsMap () .put ("Value2", someIntToo);

    operationBinding.getParamsMap () .put ("Value3", someString);

    operationBinding.execute ();


    Impl VO:


    ' public void addRow (integer value1, value2 Integer, String value3) {}


    ViewObject vo = this;

    NewRow row = vo.createRow ();


    newRow.setAttribute ("attribut1", value1);

    newRow.setAttribute ("attribut2", value2);

    newRow.setAttribute ("attribut3", value3);


    vo.insertRow (newRow);

    this.getDBTransaction () .commit ();

    }

    I capture without exception again, but when I place everything correctly and trigger the code bean managed via a button action, the table shows the new line with the correct integers, but the channel cut in two by the calculation of SQL from the top shows only blank cells. After that research with the filter of the table and remove the search filter once again, the strings appear correctly.

    For example, after you insert:

    table1.PNG

    Then, after 'refreshment' with the filter:

    table2.PNG

    What can I do about it? I can't really put the data through the InsertWithParams, because I need build the string with the Java Code.

    It only does not show data after insertion, PartialTrigger (s) also will not work.

    You must re-run the sql query after validation (with: vo.executeQuery ())

    Dario

  • Refresh the result table or rerun the query

    I have a requirement, simple but stuck somewhere.

    Jdev 11.1.1.17 Expert level: Mid-Senior

    I have a form of application and the associated result table. It works great and no problems.

    My requirement is that I have a commandlink on one of the column. Clicking on that will open a popup with an editable filed. OK will commit and Cancel will close the pop-up window.

    After that the popup is dismissed with partial trigger, my table refreshes but data is identical to the front. But if I click the Find (Search) button on the query, it shows the data with the results updated which are changed in the pop-up window above.

    How do I update table which re - runs the query and then refreshes the table after the popup is dismissed, or when the user clicks the OK button in the pop-up window.

    Get on the viewObject of this table and call the executeQuery method that

    Write this method in the method AMImpl and then call it in bean managed using the OperationBinding at the click on the Ok button of the dialog box

    ViewObject vo = this.getViewObjectName ();

    vo.executeQuery ();

    Ashish

  • Dynamic action does not not on the first attempt to load page. Work after refreshing the page

    4.2.1

    Hello

    I have a page with a list of selection Order_id and a display _item Product_name.  There is action dynamic PL/SQL that fills the element displayed when the order_id is changed. The problem is that when I opened the page for the first time, if I change the select order_id list, nothing happens. But if I refresh the page once, and then it starts work and the display_item is filled.

    No idea what could be the problem?

    Thank you

    Ryan

    ryansun wrote:

    On a more serious note,.

    1 when you load the page for the first time and try selecting the order_id, nothing don't be past, try refreshing the page once and you will see the option to display with the null value. What I do is. I have two tables

    Orders

    1

    2

    3

    Products

    1A

    2B

    2 Z

    3 C

    When I select the command 1, then since there is only one line of products, the displayed item will indicate A populous. If I select 2, since there are two product lines, I should see the list box.

    Doesn't seem to work and I'm sure, I'm doing something wrong.

    Difficult to be certain that as it appears that someone has been editing the page before you start watching (rather than copy the page experience their own copy). Your article P1_PRODUCT_NAME_DISPLAY he a point value / Expression 1 column = Expression 2 condition P1_HIDE_SHOW = 1 condition on that? Or any other condition of rendering?

    These conditions do not match the dynamic actions. They are applied only during the page see the transformation when the page is displayed first; When it is linked to another page; or after a branch to him. They are not applied dynamically during the activity of the user on the page. In this case, that the status is set to false when the page is rendered first, the same element does not exist in the page sent to the browser. If you want these items to appear conditionally because of the interaction with another user control, then you must initially return the elements and control their visibility using hide/show the dynamic actions.

  • Refresh the page after the fires of fileDownloadActionListener

    Hello experts!

    I use jDeveloper 11.1.1.7.0

    I have a table in a fragment of page jsfff with a button to upload the files that are shown in this table. After downloading the files, I need update the table.

    Downloading files when the user presses the button (partialsubmit = false) I invoke another button hidden (partialsubmit = false) which has af:fileDownloadActionListener that performs the action. (This is because I am doing other activities before you download files)

    It works fine, but I need to refresh the page (among others) after downloading the files. How can I do this?

    I tried to update the table of

    -method fileDownloadActionListener

    -Method of hidden commandButton action

    -The partial trigger table button

    But I could not update the table with any of these

    How can I refresh the table after uploading the files?

    Yes.

    I'm looking at the source code for FileDownloadActionListener.processAction ().

    After invoking the method property, he calls FacesContext.responseComplete (); which ignores the render response phase.

    And so you can not rynefall page at all.

    An in-depth, that you can do, is to use af:poll, IE, activate the survey by clicking on the button visible (in javaScript)

    Here you can see how to start the survey by javaScript:

    GEBS | Oracle Fusion Middleware 11g ADF progress indicator

    (search handlePoll )

    In the pollListener, you can refresh the page AND also disable survey by itself (by calling setInterval(-1))

    After questioning to stop, you must refresh the survey component, with

    AdfFacesContext.getCurrentInstance (.addPartialTarget(...your_poll...whatever));

  • PPR for the updating of the table after a click in a butto in Jdeveloper 10.1.3 - thanks

    Hi people,

    I looked through many messages about refreshing the page, but still did not solve my problem. Please help me. It's quite URGENT.

    I have a table with a command button. After you click the data insertion is engaged and the table is supposed to be updated to reflect the changes.

    Now I use PPR as my solution: the button is the initiator and the table is the target. I put the button property: part delivery = true and its id as a partial release of the table value

    What I missed, please?

    Note: reloading of the entire page is not a solution for me. (The table is incorporated within a region of showOneTab and there are other tables in different tabs)

    Thanks in advance!

    Assuming that nothing wrong with the JavaScript syntax, the explanation might be: If you ActionListener Installer (data transaction method) and javaScript on a button-click the button, the button click javaScript will not be executed. (???)

    This is not the case. In my application, the two actions of script and java onclick button are executed. Javascript onclick fires first, then the action of the button. It should be the same for actionlistener as well.

    Regarding the updating of the table after a click of a button inside the table, you can do this by forcing the partial relaxation of the table of a bean to support using addPartialTarget.

    On the actionListener to the button call the below the backup method of bean.

    Here is the code example:

        public void btnSample_actionListener(ActionEvent actionEvent) {
           // First execute the method on the button
           BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("buttonMethod");
            Object result = operationBinding.execute();
    
            //Refresh the iterator of table and partial trigger the table
            OperationBinding operationBindingTab =
                bindings.getOperationBinding("RefreshTable");
            Object resultTab = operationBindingTab.execute();
            AdfFacesContext.getCurrentInstance().addPartialTarget(myTable);
    

    RefreshTable is an action that runs the Execute method on the table iterator.

    Thank you
    Mitesh.

  • I can't refresh the files that I opened on a server to FireFTP after I change them (HTML, PHP, etc.).

    For weeks I've been editing files on a remote web host (via FireFTP) that are also open in Firefox. From late in the evening, I can isn't just refresh the Firefox tab once I changed the file on the server. On the contrary, I have to close the file and re-open it completely. When I have the remote file open in a local editor time, date and size on the server as expected so I know this subject works.

    The url indicates the location of the remote as file:

    file:///C:/users/{account_name}/APPDATA/local/Temp/{filename.ext}

    and if I check this location on disk the file is there. Also note the file: Protocol that may or may not be standard.

    Firefox and FireFTP copy of the file in the directory of the user and displaying only the version of the file? The association with the remote/hosted file somehow does not work?

    I checked the Firefox command line options and do not see anything that looked like it might make a difference. I rebooted several times. I checked against viruses and malware and also perform several operations of registry cleaning.

    Still, it worked until a few hours and I have not installed or changed something that I know.

    Any suggestions?

    OK, I'm a complete jerk. The behavior I described is exactly what it should be. I was able to do a quick update when I was working with files * already on the local disk *, which is what I actually did most of this time. The view on the Web option is the only way to access a direct view of the file.

    The downside is that view on the Web looks like that it only works with the default browser. It would be nice to be able to select the browsers to use if more than one is available, but it's a niggle (or a feature request) for another day.

    Now you can beat me in the face with a crowbar. After that I'm done, of course.

  • Refresh the screen after the removal of the UI elements

    Hello world

    I create a screen in which I use listfield to display data online as a way each line has a button Delete. I want to know how to refresh the screen after the deletion of data or a row of the screen?

    Because you actually using a HorizontalFieldManager to display each line, to remove it, you must remove the information in the underlying data store and then delete it HFM of his Manager.  That's it, removing the HFM will refresh the screen.

  • Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted

    Windows 7 Ultimate: Explorer is not refreshed after deleting a file, the deleted file still appears in the window, on the manual "Refresh" the file is deleted.

    I have also changed the CLASSID HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\ {BDEADE7F-C265-11D0-BCED-00A0C90AB50F} / instance DontRefresh value to 0

    Hello

    (1) have you made changes before the start of this issue?

    (2) what happens when you try to start in safe mode?

    To start your computer in safe mode, you can see the link below:

    http://windowshelp.Microsoft.com/Windows/en-us/help/323ef48f-7b93-4079-a48a-5c58eec904a11033.mspx

    I suggest you to place the computer in a clean boot state and check if the problem is resolved:

    1. sign the computer by using an account with administrator rights.

    2. click on Start, type msconfig.exe in the Start Search box and press ENTER to start The System Configuration utility. If you are prompted for an administrator password or for confirmation, type your password, or click continue.

    3. on the general tab, click Selective startup, and then click on to clear the load startup items check box. (The check box use the file Boot is not available.)

    4. on the Services tab, click to select the hide all Microsoft services check box, and then all disable.

    5. click OKand then click restart.

    6. check if you still have the problem.

    See the link below for more details:

    How to troubleshoot a problem by performing a clean boot in Windows Vista

    http://support.Microsoft.com/kb/929135

    Reset the computer to start as usual after you have finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click Start , type msconfig.exe in the Start Search box and press ENTER.

    1. If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    2. on the general tab, click the Normal startup option, and then click OK.

    3. When you are prompted to restart the computer, click restart.

    If this does not work, try to run a SFC scan. To do a SFC scan follow the steps below:

    Use the System File Checker tool, which is also called scan SFC.

    File system (CFS) auditor verifies that all Vista system files are where they should be as they are by default and not corrupted, changed or damaged.

    1. click on Start, click principally made programs, Accessories, right-click on command promptand select Run as Administrator.

    2. click on continue or provide administrator credentials if prompted.

    3. in the command prompt window , type the following, and then press ENTER:

    sfc/scannow

    4. you should see messages on the screen the following:

    From the analysis of the system. This process will take time.

    Start of the phase of verification of the scanning system.

    % Of verification complete.

    5. once scanning is complete, check to see if the problem you are experiencing is resolved or not.

    Hope the helps of information.

  • How to refresh the region after inserting data by dynamic Action?

    Hi friends

    I use APEX 4.1. I created a form master detail and wrote an insert command in dynamic Action through which the data is inserted into the secondary table. I want to refresh the detail region as data is inserted and data must demonstrate in the detail area.

    How can I do this? Help, please. I will be grateful.

    Kind regards.

    Hi Kam_oracle_apex,

    Add real action to the existing dynamic action

    Action: update

    selection type: region

    Region: Detail (the region that you want to refresh).

    Kind regards

    Jitendra

  • Bridge does not refresh the thumbnails after changes in ACR.

    Bridge does not refresh the thumbnails after changes in ACR. Cultures made in ACR do not show more. I think it started after new ACR update. I have the last bridge and ACR and Photoshop.

    I thought about it. I have reset the settings of the bridge by pressing Command-Option-shift and then started bridge on my Mac. I lost my sight, I got but should display what I want to see again. But it solved the problem of the bridge not updated after modified ACR.

  • How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    So I created a widget or a hosted form, and after finishing to complete to have a single view of signing, he puts another section or area below which requires another signature and send an article I don't want to have there. It creates another page as well because my original signature line is down.

    Then... How can I get rid of the 2nd line of signature with an email requested line under form after its creation in a widget

    Hello

    By default the Widget to always an email and if you have not added field which, E-Sign would put a signature block (which consists of Email field) at the bottom of the document.

    Kind regards

    -Usman

  • 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

Maybe you are looking for

  • Number of SATA 3 interfaces in QOSMIO X 70-A

    Hello everyone, I would like to know if two tough internal of my Qosmiox70 use SATA III interfaces or alone. This because I would upgrade HDD with SSD. Thanks for your help. Andrea

  • Wake up one morning and my CLIQ suddenly formed a lot of questions...

    I had no problems with my CLIQ so far (I got my phone in June this year) but I woke up yesterday with my phone will madly, playing some mysterious ring. I looked around my phone trying to see what he had and I had realized that she had changed my rin

  • I'm unable to access the files on my external hard drive

    I have an external hard drive and can't read the files. The device appears on my PC, but no file shows when I go to the device and equipment. My PC is not recover this unit and only not recognize it as a USB device. I can see this under the folder ha

  • Linksys WRT54G2 - no internet.

    You are connected to the access point, but no internet is. [IMG] http://i179.photobucket.com/albums/w282/x_trippy_x/fAIL.jpg [line] I have a WRT54G2. Modem--> router--> computer (wired connection) . --> Computer (wireless) The wired one works fine, I

  • Impossible to debug with 9000 device

    Hi, I develop a little app that I debug in the Simulator and now I wan't to test on a real device. I have connected my BB Bold 9000 to the Pc via the USB cable and selected "join" in the JDE. Currently, I get lots of messages like "cannot find NET_RI