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));

Tags: Java

Similar Questions

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

  • Data only is not displayed after you refresh the page

    Hi all.

    Connect with a user who has a certain responsibility associated with an org_id (82), but there is also an org_id (81) set as default at the site level.
    We have a page with an AttachmentTable that is used for the contracts.
    In this page, we have a function that updates some attachments (because a contract template has been changed) using a simultaneous process associated with BI Publisher.

    After this function has updated on attachments, to display the results in the AttachmentTable, I do the following in CO:
    pageContext.setForwardURLToCurrentPage (URLparam, false,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);

    I read somewhere, refreshing the page that the retainAM must be set to false.
    When I refresh the current page to see the accessory updated in the layout of the AttachmentTable, I see the layout without any data, because I noticed the retainAM = false in the method cleans up any context and value org_id is lost (I have my VO profile the org_id value to filter my query).

    Note that this medication works very well when I connect with the same org_id (by the responsibility) of the value of the default site.
    Data loss occurs when I use an org_id which is not the same thing to the value of the default site.

    If I use retainAM = true, I don't see the attachment of the update.

    Do you have advice to help me to refresh the page (and AttachmentTable)?

    Thank you
    Concerning
    Vincenzo

    Published by: Vincenzo on 14.18 5 - it is a-2010

    Published by: Vincenzo on 14.19 5 - it is a-2010

    Published by: Vincenzo on 14.20 5 - it is a-2010

    Hi Vincenzo

    If I'm gettting it correct then you want to run the query based on the current ORG ID... IF this is the case then instead of use the VO query with this where clause

    WHERE XxfwContractEO.ORG_ID = fnd_profile.value ('ORG_ID')

    Please use

    WHERE XxfwContractEO.ORG_ID = :1
    

    & then when running the original Version, you can setWhereClauseParam to set the binding parameter.
    Please note: you can get the id of the help org pageContext.getOrgId ();

    Thank you
    AJ

  • How to refresh the Parent page after closing the window pop up (Dailog)

    Hello

    My Version of JDEV is 11.1.1.7.0

    I open the POP-UP (Dailog) using goLink

    Now how can I use property return Action Listener to refresh the parent page.

    Thank you

    Venkatn

    Hello

    Is there a reason why you using a goLink erq? Could replace you it with a commandLink? You will be able to refresh the page in the earphone of return.

    Kind regards.

    Ruben

  • Safari does not load pages after sleep in the active window

    Please note: I'm French, so what you read is not perfect. Thank you.

    Hi everyone, it has been so long that I tried to solve my problem on Safari.

    Let me explain what happens: when I wake my Mac, some site not loading, including Youtube, Facebook and Google until I

    -Close the Safari window and open a new

    -Wait at least a minute or two

    -Spam the shortcut for refresh up to what a "page not found" error.

    I tried all explained in this or other forums and do these things:

    -Reinstall the operating system (but keeping my data)

    -Restore with a Time Capsule

    -Open the terminal and type these commands:

    -Fixed permissions and owner

    sudo find ~ $TMPDIR... - exec chflags h nouchg, nouappnd, noschg, nosappnd {} - exec chown () $UID h - exec chmod + rw {} + - exec chmod () n h ++ - type d - exec chmod h + x {} + 2 > & -.

    -Reset Safari

    MV ~/Library/Safari ~/Desktop/Safari-'date + %Y %hour %m %d ' %s; RM - Rf ~/Library/Caches/Apple\-\ Safari\---------Safari\ Extensions\ Gallery; RM - Rf ~/Library/Caches/Metadata/Safari; RM - Rf ~ / Library/Caches/com.apple.Safari; RM - Rf ~ / Library/Caches/com.apple.WebKit.PluginProcess; RM - Rf ~ / Library/Cookies/Cookies.binarycookies; RM - Rf ~/Library/Preferences/Apple\-\ Safari\---------Safari\ Extensions\ Gallery; RM - Rf ~ / Library/Preferences/com.apple.Safari.LSSharedFileList.plist; RM - Rf ~ / Library/Preferences/com.apple.Safari.RSS.plist; RM - Rf ~ / Library/Preferences/com.apple.Safari.plist; RM - Rf ~ / Library/Preferences/com.apple.WebFoundation.plist; RM - Rf ~ / Library/Preferences/com.apple.WebKit.PluginHost.plist; RM - Rf ~ / Library/Preferences/com.apple.WebKit.PluginProcess.plist; RM - Rf ~/Library/PubSub/Database; RM - Rf ~/Library/Saved\ Application\ State/com.apple.Safari.savedState

    -Fix permissions with the inbuilt system tool

    sudo/usr/libexec/repair_packages - repair - standard-pkgs - volume.

    -Log in as a guest

    -Start in safe mode

    -Switch to recovery mode and put something else in the window "resetpassword.

    -Remove all apple leaves me with the GUI (cookies, cache, etc.)

    -Mess with network settings, but it's obviously very well because other programs have no problem for example. Chrome, Firefox, Mail, Push notifications...

    -Uninstall all extensions safari

    -Unplug my micro sd card and reboot (which is constantly plugged into my mac)

    I am so angry with my computer because I paid 1.5 k for a computer that is not able to make the task easier for a modern computer. Even a €50 computer has embedded software that can handle a resume from sleep without having to restart the entire software... Imagine if you had to do it on your iPhone, you will eventually get a refund within a week or less because it is not normal in 2015 to have this kind of problem. I hope that I have no problem with safari on my 6s and I don't plan to spend my browser because Safari is part of the Apple ecosystem and have the perfect sync and battery management.

    So I need to get this fixed a problem and I really need your help because a lot of people had this problem on the internet, but NEVER seen someone who explained how it happened is the correction of a problem. My Mac running the latest version of the software which is 11.2 starting today.

    Here is a video of the problem:

    https://www.YouTube.com/watch?v=AjfAlkKEVsc

    And some examples of the threads on the internet, I found the same problem:

    Safari does not work after the mode 'sleep'. Apple support communities

    Safari doesn´t supported pages after waking up

    Safari does not load page after waking up

    Facebook doesn't "work" after the awakening from the sleep - MacNN Forums

    Corruption Safari       See post by Linc Davis

  • ' The page you are trying to view cannot shown because it uses an invalid form or not support compression. ' This happens only in the Fire Fox browser.

    When I try to access sourcea.fr to check my account, after I get my ID and password a window opens with the message "the page you are trying to view cannot shown because it uses an invalid form or not support compression. '" This only happens in the Fire Fox browser.

    Hi BAMIRANGE,

    ·         You try to use Internet Explorer and check to see if you encounter the same problem?

    If the limited issue of Firefox then the number you posted would be better suited in the Forums of Mozilla Firefox. I would recommend posting your query using Mozilla's Firefox.

     

    Support for Mozilla Firefox

    http://support.Mozilla.org/en-us/KB

    Hope this information helps.

  • Refreshing the page creates a new record – how to avoid this?

    I have a 'submit' button that runs a 'record insertion.

    After insertion is made I branch (back) to this same page.

    The problem is that when I hit page refresh the folder gets reinserted.

    How to avoid this behavior?

    AZZ says:

    fac586,

    Yes. You are right. It was a late semi written post. My apologies. You must stop working after midnight.

    Let me clarify:

    I have a SUBMIT"" button.

    There are the conditional 'after send' (if the key) process.

    the process calls a function that inserts a new record in the table.

    Question:

    How can I avoid running the process on refreshing the page?

    I've simplified the situation - no record insertion. However, if you refresh the page the success of the function call message will be displayed.

    https://Apex.Oracle.com/pls/Apex/f?p=4000:1:126172565551184:no:RP:FB_FLOW_ID, F4000_P1_FLOW:21325, 21325

    user/pass help/help

    workspace - AZ_

    To reproduce:

    Click on the submit - observe green popup "OK!"

    Refresh the page (F5 or ctrl-R) - see 'OK!' again.

    No process is executed to see the page or page refresh. This can be confirmed by looking at track of debugging to see the processing page. The page contains no defined process to run at a show of page processing point; None of the calculations which could call a function that could not perform an insert as a side effect; None of the dynamic actions or calls JS could initiate an insertion using AJAX; Neither the source region contains any code that could do it. I'll draw the line search conditions that can contain deeply buried code which could be responsible and direct you to a previous thread of the same nature: success of process Message not tied to Conditions.

  • Refresh the page column link onclick

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a single process Page on load before header, which validates the records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    Infantraj wrote:

    Hello

    I'm using version 5.0 of apex...

    Set up a report page in the apex with two columns of the link to validate and download... I have a process on Page load before header that validates records in a table...

    When I click on the link to validate documents are validated, a log file will download automatically... After that the page should refresh... Is it possible to send the page through javascript in the PLSQL page or in javascript...

    I need to refresh the page after that validation is complete...

    Thank you

    Toddler

    1. call the link java script function validate and transmit the application using APEX. Send

    function test() {}

    Apex. Submit ({request: "SUBMIT"});

    }

    2 assign this request to your process.

    modify your process-> status-> request = Expression1

    Expression1 = SUBMIT

    Better to create example on apex.oracle.com.

    Hope this helps you,

    Kind regards

    Jitendra

  • 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

  • Refresh the page with a commandLink jspx

    Hi all!

    I use JDeveloper 11.1.5.0.

    So I have a jspx with a commandLink on that page. After deployment, I refresh the page in a browser with F5. But if I click on the commandLink and then I try to refresh the page with F5, I get a message from browser (Google Chrome): "the page you're looking for uses the information that you entered. Return to this page could cause any action you took to be repeated. Would continue you? ». On the message form, I can press "Continue" button and the page will be refreshed, or press a button 'Cancel', and nothing will happen. The same situation is in Mozilla Firefox.
    Could you expain to me, what is the reason for this behavior, and what I have to do to update the page with F5 with no message after clicking on the link.

    Evgeny Michuk

    JSF links are working through a concept called "publication" the message that your browser shows you is here because you are re-view data by refreshing the page - it's a standard thing.

    As suggested - do not use F5.

    John

  • read the value of the item page after filling value pop-up window

    I can't read or insert and also I cannot perform dynamic action of a page element data after the filling of the data page of the window popup (pass back to the point of the page). But I can read and insert, perform a dynamic action data while filling in the data using ajax and PLSQL code...


    How to read the value after the filling of database page popup window?


    SKUD

    Set value using Javascript is that in your browser page but is not yet available in the session. This is why the report does not return the expected results.

    Before you refresh the report, you need to set the session state from this point.

    You can configure after assigning a new value or before the report is updated to the element
    For interactive reports, is available built in
    You can go to report attributes > attributes advanced-> Page elements to submit and specify P2_X1 for the field (and any other page element that depends on the report)

    For standard reports, you can create a dynamic Action that is triggered 'before updating"report region, select PLSQL as action types, give a code BÉGIN END NULL; model and specify the name of the item in the item page to submit the field so that it affects the value of items in the session.

  • Refresh the report SQL (Send Page element)

    I want to add a lookup field in a SQL report. I have something like this
    SELECT * FROM emp
    WHERE  emp_no  LIKE  :P1_SEARCH || '%'
    I want to make the asynchronous search on KeyPress. The problem is that a SQL report is not a ' submit: 'attribute as an interactive report. "
    So after I refresh the report:
    $a_report($x('P1_REPORT_ID').value,'1','10','100');
    The report is refreshing (the icon of circle on the top of the screen) but nothing changes cause the: P1_SEARCH supports.

    How can I submit a JS page element?

    Greetings from King,
    Cearnau Dan

    PS: I use 4 APEX and by using dynamic measurements, it is the same as the Javascript call. (still does not submit the: point P1_SEARCH)

    Hello

    Place your footer area

    
    

    And create processes on demand MODEL

    htp.prn('OK');
    

    Kind regards
    Jari

    Published by: jarola December 19, 2010 14:40
    typo

    Published by: jarola December 19, 2010 14:46

    Another typo corrected from code.

    I did fact sample
    https://Apex.Oracle.com/pls/OTN/f?p=40323:78

  • 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

  • Impossible to apply rights to the visitor without refreshing the page

    Hello

    I created two roles) 1 consumer 2) employee
    and two Office pages 1) consumer Page 2) Page used

    I placed rights to the visitor to these pages Office accordingly. Then when I connect, corresponding page should be displayed after authentication. But it does not work until I refresh the page.

    Anyone can provide a solution for this?

    Kind regards
    MARGI

    Published by: user13389316 on July 19, 2010 15:04

    Published by: user13389316 on July 19, 2010 15:05

    You must redirect, there's no way around that I know

  • 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

Maybe you are looking for

  • Equium L40 - internet does not work if I open more than one Web site

    I have an Equium L40-10 X, and while the system works well, he doesn't like the internet. If I open more than one Web site, a little box comes up saying that Internet Explorer has experienced a problem and must be restarted. It becomes excruciatingly

  • small disc inserted and does not eject

    Someone at - he lived small insert DVD / disc to the macbook pro 2013instead insertion standard size; I did and I can't he ejected now! Need help... Thank you

  • Obsolete devices in the AutoPlay list & several entries for the same devices

    I would like to remove 4 entries for "Canon PowerShot A75" on the list of automatic run settings since I no longer have this camera.  Can someone tell me how to remove these?  (I have Vista Home Premium SP2) Someone else has multiple entries in the a

  • Video card and power supply upgrade - XPS 8700 (mid-2013)

    Hello I was considering upgrading my video card in my 8700 XPS to an AMD R9 270 to an AMD R9 290. I was wondering weather the power would be able to take it. It's a 460W power supply which I don't think will be able to manage an AMD R9 290 so I was a

  • BlackBerry BlackBerry on ATT network Passport

    Got my Passport today BlackBerry that was shipped to Florida where I live, but I'm not able to get LTE but only 4G on the ATT network signals. Should I call the BlackBerry technical support to resolve this issue. I don't know if ATT is going to have