Refresh Issues with af:fileDownloadActionListener

I have a page with has table - (contents from a data control). Row selection is enabled for this table. I have a menu item (download) in this page which invokes a taskflow inside a popup.
This taskflow has a command button af:commandButton (named Download) and fileDownloadActionListener associated with it and it downloads a file (based on the row selected) and closes the poupup.
<af:commandButton text="filedownload"
shortDesc="#{lifecycle_ui_bundle.EXPORT_SRM_LABEL}"
visible="true"
id="lcsrmdwnldbtn">
<af:fileDownloadActionListener filename="#{pageFlowScope.lifecycle_srmexport.exportArchiveFile}"
contentType="application/force-download; charset=utf-8"
method="#{pageFlowScope.lifecycle_srmexport.downloadFile}"/>
</af:commandButton>
Bean Method:
public void downloadFile(FacesContext context, OutputStream out)
throws IOException
OutputStreamWriter w = new OutputStreamWriter(out, "UTF-8");
w.write("Hi there!");
// The stream is automatically closed, but since we wrapped it,
// we'd better flush our writer
w.flush();
This taskflow also has another command button (named Save) it creates a file in /tmp location (based on the row selected) and closes the poupup.
when you select a row and invoke the menu download, the poupappears with the download and Save command buttons and the clicking on the command button downloads file and closes the popup.
First time its all proper. but NOw for the second time when i try to select another row from the table, the datacontrol popinter still remembers the old value. This happens only after the use of the Download command button (fileDownloadActionListener) in the popup.
If i use the save Command , datacomtrol pointer moves correctly to the selected row and i get the correct value of the row.
How can i refresh the parent page (not the poup) upon clicking of the Doenload Button (After downloading the file).

Yes the contentDelivery is set to lazyUncached
<af:popup id="actP2"
binding="#{pageFlowScope.srm_resourceAction.actionPopup}"
contentDelivery="lazyUncached" childCreation="deferred">
<af:dialog title="#{WCTruncator[pageFlowScope.srm_resourceAction.actionPopupTitle]['39']}"
id="d1"
type="none"
helpTopicId="#{pageFlowScope.srm_resourceAction.helpTopicId}">
<f:facet name="buttonBar">
<af:panelGroupLayout halign="end" id="pgl1">
<af:commandButton actionListener="#{pageFlowScope.srm_resourceAction.handleOK}"
text="#{(pageFlowScope.actionName == 'create') ?
uib_o_w_srm_UIBundle.CREATE_ACTION_LABEL : uib_o_w_srm_UIBundle.SRM_OK}"
id="cb5" partialSubmit="true"
rendered="#{pageFlowScope.actionName ne 'export' and pageFlowScope.actionName ne 'import'}"/>
<af:commandButton immediate="true"
text="#{uib_o_w_srm_UIBundle.SRM_CANCEL}" id="cb6"
visible="#{!(pageFlowScope.actionName == 'about')}"
rendered="#{pageFlowScope.actionName ne 'export' and pageFlowScope.actionName ne 'import'}">
<af:clientListener method="srm_hidePopup" type="action"/>
</af:commandButton>
</af:panelGroupLayout>
</f:facet>
<af:region value="#{bindings.dynamicRegion1.regionModel}" id="r1"/>
</af:dialog>
</af:popup>
Could you please let me know why the datacontrol pointer is not moved to the currently selected row post the invocation of the downloadlistener.
Edited by: user510156 on Aug 1, 2012 8:44 AM

Similar Messages

  • Browser specific Issue with af:fileDownloadActionListener/ component.

    Hi all,
    We are facing an issue with <af:fileDownloadActionListener/> component.
    The issue is that when we download a particular file to the local system/machine, after downloading the file using <af:fileDownloadActionListener/>, none of the actions/links/button work on the page thereafter. We have to do a browser refresh or switch the URL.
    After doing some investigation, it is looking like a browser specific issue, as this is reproducible only on chrome but not on firefox or IE.
    The UI component used is <af:fileDownloadActionListener/> component. Below is the snippet of the code. Is there anything to be specified for af:fileDownloadActionListener?
    <f:facet name="buttonBar">
    <af:panelGroupLayout partialTriggers="expPoll expProgess" id="gsexppgl11">
    <af:commandButton text="#{uib_o_w_w_r_WebCenter.LABEL_DOWNLOAD}"
    shortDesc="#{uib_o_w_w_r_WebCenter.LABEL_DOWNLOAD}"
    id="expClientp"
    disabled="#{!pageFlowScope.o_w_w_i_v_b_l_WebCenterExportBean.showExportButtons}">
    <af:fileDownloadActionListener filename="#{pageFlowScope.o_w_w_i_v_b_l_WebCenterExportBean.fileName}"
    contentType="application/force-download; charset=utf-8"
    method="#{pageFlowScope.o_w_w_i_v_b_l_WebCenterExportBean.dumpOAROnClient}"/>
    </af:commandButton>
    </af:panelGroupLayout>
    </f:facet>
    Anyone has faced this issue before? Is this a known issue?
    Thanks,
    Ankush

    Jdveloper version is 11g. But we saw this issue with 12c as well.
    I have reproduced this in a standalone application as well. I had a page on which I just had a button attached to the file download component. And I faced the similar situation - works fine on IE/FF but causing issues on chrome/safari.

  • Screen refresh issue with SQL Developer 1.5.5 on Vista 64 bit

    I am using the latest version of SQL Developer.
    I have screen refresh issues in sql developer. On scrolling up and down the display gets jumbled, some time screen do not display at all. Its making working with SQL Developer very difficult. I don't have such an issue with any of my other editors.
    Is this something specific to Vista? Is there any know solution to this issue.
    Thanks
    Edited by: user5899685 on Sep 1, 2009 11:14 AM

    Specific? Not really, but judging from the posts here Vista is more prone. It usually indicates incompatibility between Java and video drivers.
    If updating your JDK or video driver doesn't work or isn't an option, just disabling DirectDraw in \sqldeveloper\bin\sqldeveloper.conf usually works too:
    AddVMOption -Dsun.java2d.noddraw=trueHope that helps,
    K.

  • Cache refresh issue with PI Load Balanced HA setup.

    Dear Experts,
    Wei have installed a HA Load Balanced PI Production Server with the below specifications. Its a four node cluster. Two nodes for Application Cluster and another two nodes for Database Cluster.
    Node1
    Physical Hostname  : axsappci
    Virtual Hostname  : axsapp00
    Instances         : CI,SCS and ASCS.
    Node2
    Physical Hostname : axsappdi
    Virtual Hostname   : axsapp00
    Instances          : Dialog instance installed with physical hostname axsappdi
    Node3
    Physical Hostname : axsappd1
    Virtual Hostname   : axsappdb
    Instances  : DB Instance.
    Node4
    Physical Hostname : axsappd2
    Virtual Hostname   : axsappdb
    Instances  : Standby DB Instance (passive).
    Web Dispatcher Hostname : h2h
    Application Switchover : CI,SCS and ASCS to switchover to Node2 and dialog instance Node2 forcing to go down
    Database Switchover : DB Instance switchover to Node2 if Node1 fails.
    We have changed all the parameters according to note 951910 -> NW2004s High Availability Usage Type PI
    I am facing an issue with the cache Notifications in the Integration Repository and Directory. The cache notifications are not happening properly particularly with the ABAP Cache.
    I get the below error in my ID when i try to do the manual cache notification.
    Unable to notify integration runtime (ABAP) of data changes
    Unable to establish http connection "http://h2h:8002/sap/xi/cache?sap-
    client=001"
    Kindly assist.
    Thanks and Regards
    Raghu.

    Hi Srikanth,
    Thanks for the reply.
    I have configured my web disptacher to use default HTTP and HTTPS ports i.e 80 and 443. According to note 951910 i have changed parameters in exchange profile to use these ports.
    Regards
    Raghu.

  • Refresh issue with the popup

    Hi,
    I have a create form on which I have a command link which opens a popup. The popup contains a search screen(Search criteria and results), when the user searches for a record in the popup and selects a record, the record information should be populated in the create page. Sounds simple right? Let me explainin detail what Im having trouble with.
    The create page is bound to NominatorView object. The fields(first name and last name) that need to be populated via the popup selection are bound to PersonsView object. The popup screen is bound to SearchPersonView object. PersonsView and SearchPersonsView objects are tied to the same entity/table(PERSONS). In the popup when a person is selected I take the PersonId from SearchPersonsView and set it to the PersonId in the PersonsView object. And when the selection is made, the popup closes but the firstname and lastname are not updated on the create screen. Below is the code form the create and popup screens.
    CODE FROM CREATE
    <af:panelHorizontal halign="center">
    <af:panelLabelAndMessage label="Nominator: " partialTriggers="personSearchLink">
    <af:outputText value="#{bindings.PersonsViewFirstName.inputValue}" partialTriggers="personSearchLink"/>
    <af:outputText value="#{bindings.PersonsViewLastName.inputValue}" partialTriggers="personSearchLink"/>
    </af:panelLabelAndMessage>
    <af:commandLink id="personSearchLink" action="dialog:searchPersons"
    useWindow="true" immediate="true"
    partialSubmit="true">
    <af:objectImage height="24" width="24"
    source="/images/searchicon_enabled.gif"/>
    </af:commandLink>
    </af:panelHorizontal>
    CODE FROM THE POPUP
    <af:tableSelectOne>
    <af:commandButton text="Select">
    <af:setActionListener from="#{row.PersonId}"
    to="#{bindings.PersonViewPersonId.inputValue}"/>
    <af:returnActionListener value="#{row.PersonId}"/>
    </af:commandButton>
    </af:tableSelectOne>
    If anyone can help, I would be greatful.
    Thanks

    Hi Frank,
    Yes, tried that but still the same issue.
    If we have the partialTrigger only on the <af:outputText> then the scrolling continues. If the <af:outputText> is inside any other component and
    if we have the partialTrigger on the parent (any level), the scrolling stops. I could not see any difference in the <af:outputText> HTML rendered before and
    after the partial refresh.
    Thanks.

  • Calendar Refresh Issues

    Here's a strange refresh issue with the Apex Calendar. None of the built-in buttons (Monthly, Weekly, Daily, Previous, or Next) are refreshing the calendar with any entries at all when I first load the page. The grid and labels will be updated correctly but the data is not there.
    The weird thing is that after a page refreshes, everything suddenly works. I've tried apex.widget.calendar.ajax_calendar('M','same'); etc to no avail. Any help on this would be most appreciated.
    Thanks.
    mwt

    Same thing happening on my iMac.  Can't do much on the computer.

  • Issue with heat maps refresh process in EID 3.1?

    Issue with Heat Maps in EID 3.1? Heats maps don't refresh unless you go back to home page and then again go back to the Endeca app.
    In Oracle Sample app if we open the Map tab we will see that Milwaukee is really hot in the heat map. now if we filter the data to just show data from 100 miles within Orlando, FL then the map will get refreshed to show that area but the colors on heat maps do not change.
    Now if we keep the refinements same and go back to home page and again go back to sample app and maps tabs then it will still show area of 100 miles within Orlando, FL which is good but now heat map would have updated and it would show us correct color.
    Now if we remove the refinement then it would show complete US map as hot which is again wrong.
    I have observed this issue in chrome browser as well as firefox.
    Is there anyway to overcome this issue?

    This issue was resolved after applying latest patch from Oracle.

  • Issue with complete refresh on materialized view when using rownum

    Hi all,
    I had an issue with rownum when using complete refresh
    I am using rownum when creating materialized view and it is generation correctly.But the issue was when i am refreshing the same ,rownum was not getting sorted in ascending order.
    anyone had come across this scenario

    rownum is determined as the row is output, so "order by rownum" does literally nothing.
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/pseudocolumns009.htm

  • Issue with refresh of task flow in dynamic region

    Hi All,
    I am using Jdeveloper version 11.1.1.6. In my fusion application I am facing an issue with the task flow refresh in the dynamic region. In my application, I have one task flow in which the side navigation command links are there and on the right side it has a dynamic region which is used to display the respective task flows on click of navigation links. Now two of the links actually call the same task flow in dynamic region but for different purpose. One for creating a record and another one for modifying the record. The default activity of that task flow has a page fragment that has couple of fields. One a drop down and another one a text field for searching the accounts against which the record is to be created or modified. On click of the navigation link, I set the task flow id to be displayed and refresh the dynamic region. Now the issue is with those two links which shows the same task flow. Let's say  I searched for a record by putting some value in input text and then went on to modify flow using the modify navigation link. Then the value that I entered in search input text in the create flow stays and does not go away. I found out the cause for the issue and this is happening because of the immediate = true on the navigation command links. Now I cannot remove that because of the obvious reason that then it will start throwing exceptions for the mandatory fields when I am in middle of any flow. Is there any way to achieve it.
    Please help as this is quite urgent. I can also upload the sample application if anyone needs it.
    Regards
    Ajay

    try to put RefreshCondition in the pageDef file for that particular task Flow and try to make that condition to true only when you switch between edit or add. While switching, make sure that the mapped bean properties should also point to respective values i.e. either empty for new or holds some value for edit.
    So, when ever the above condition returns true, task flow gets refreshes and it will holds only the current values not the old values.
    i hope this will resolve your issue.

  • Issue with refresh of an input schedule

    Hi Experts,
    We are facing an issue with the refresh of an input schedule.
    We have a custom refresh via macro whereby we first refresh 3 reports in other tabs and then refresh the main schedule.
    The problem is for a particular test id we need to click on refresh twice but for developer id we refresh it only once and see the value.
    Can you help what could be the cause of it.
    In the main report we have all dimensions in either row or column axis and we are also using Dimension override for 3 dimensions.
    Let me know if any other info is required.
    Thanks
    Raman.

    Hello,
    Could you please specify the following information:
    1) What do you mean by "custom refresh"? is this feature developed by the custom development team?
    2) What are the level patch and the version of the product?
    Regards,
    Inès

  • Has anyone had issues with Planning security refreshing in Essbase

    I am on Planning version 9.3.0.1 and we are having issues with planning users being able to use an essbase connection to pull data from smartview. They are able to see data in web forms in planning but they get #no access when they try to connect to the same data in smartview.
    Has anyone else experieced this issue.

    If user works when you provision individually its because they were set in the environment in EAS.
    group has to have all the access needed (bug in orig). css file open a ticket for the file name. example user needs calc access you setup calc but bug in system is not also giving user read and write access. Thus you can individually add this to the group in provisioning area in shared services. in EAS goto File open- editors create/run script with
    alter user 'userID' Add application_access_type Planning;
    alter user 'userID' add application_access_type Essbase; to add user to the environment if error you need to refresh eas first then run maxl script for planning you also need to go to workspace and select any of your dimensions all your groups ...edit .. migrate identities.. to get group/Users in planning wether adding or removing users. when you do planning changes you need to do database and security filters refresh.

  • Issues with Infoview data refresh on Crystal Reports based on BW BeX query

    Hi all,
    We applied the Business Objects XI3.1 fix pack 3.1 with Integration toolkit fix pack 3.1 in our environment.
    After that we started having trouble with Crystal Reports based on BeX queries that use manual input variables.
    The data refresh would not work in Infoview.
    The data refresh would work using the Crystal Reports designer gui on local machine.
    regards,
    Abhishek

    Hi all,
    This thread is for the benefit of all the BW/BO people who faced issues with BO reports not working after certain fix pack installations.
    After lot of time spent in debugging this and researching and some help from SAP, we found that BASIS had missed a step in the BO patching. This step was relating to applying some BW transports in the BW system related to the new Integration toolkit.
    Please use below notes for the BW transport task of patching BOE Integration toolkit.
    Refer to Note#1472104 which explains about loading the
    transports when we install BO Service Packs or Fix Packs. Also please refer to the Note#1271751 for the advice on transports for BW systems.
    Please go through page 206 (Configuring transports) in the SAP Integration Kit installation guide. You can download this document at below link.
    https://websmp106.sap-ag.de/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf
    Refer to Note#1345919 which explains about the process of loading transports for SAP IK.
    regards,
    Abhishek

  • Issue with Report refresh of the data

    Hi All,
    we have recently upgraded from 11.1.1.5 to 11.1.1.7 version of OBIEE and since then we are facing few issue with the data refresh.
    whenever the data gets loaded in the back end the report don't seem to get updated. Neither the Reload Metadata or Refresh option works.
    We have to explictly have to go on the RPD and update the row Counts of the object and Close all cursor to Reflect the data.
    Is there any why we can do this....
    Thanks & Regards
    Shashank

    What about cache setting?

  • Problem with refresh issue in Table Overflow Area for LOV in edit mode

    Hi Friends,
    I am facing a problem with LOV if i keep this in Table Overflow area,
    When i select a Employee name from the List of Value clicking on select button it will not refresh the lov to display the currently selected Employee Name, but if i click on show and hide link of Table overflow the selected employee name will be displayed.
    But the if move the same lov item from Table Overflow area to Table layout it works fine.
    I tried my best to look into this but i could not, can any one suggest me what i need to do for this refresh issue.
    Regards,
    Rahul

    Hello Rahul,
    Strange, it's working for me.
    I assume you added Employees as reference entity to your updatable entity in your ViewObject.
    Did you uncheck "Key attribute" in EmployeeId of your reference entity?
    Anything in the log?
    Groeten,
    HJH

  • Issue with materialized view and fast refresh between Oracle 10g and 11g

    Hi all,
    I've hit a problem when trying to create a fast-refreshable materialized view.
    I've got two databases, one 10.2.0.10, another 11.2.0.1.0, running on 32-bit Windows. Both are enterprise edition, and I'm trying to pull data from the 10g one into the 11g one. I can happily query across the database link from 11g to 10g, and can use complete refresh with no problem except the time it takes.
    On the 10g side, I've got tables with primary keys and m.v. logs created, the logs being of this form ...
    CREATE MATERIALIZED VIEW LOG ON table WITH PRIMARY KEY INCLUDING NEW VALUES
    On the 11g side, when I try to create an m.v. against that ...
    CREATE MATERIALIZED VIEW mv_table REFRESH FAST WITH PRIMARY KEY AS SELECT col1, col2 FROM table@dblink;
    ... I get an ORA-12028 error (materialized view type is not supported by master site).
    After running the EXPLAIN_MVIEW procedure it shows this;
    REFRESH_FAST_AFTER_INSERT not supported for this type mv by Oracle version at master site
    A colleague has managed to build a fast-refresh m.v. from the same source database, but pulling to a different one than I'm using; his target is also 10g, like the (common) source, so I've no idea why I'm getting the 'not supported' message whilst he isn't.
    I've been able, on previous projects, to do exactly what I'm trying to achieve but on those someone with more knowledge than me has configured the database!
    I'm now stumped. I'm also no DBA but despite that it's been left to me to install the new 11g database on the 32-bit Windows server from scratch, so there are probably a couple of things I'm missing. It's probably something really obvious but I don't really know where to look now.
    If anyone can give me any pointers at all, I'd be really grateful. This question is also duplicated in the Replication forum but hasn't had any replies as yet, so I'm reproducing it here in hope!
    Thanks in advance,
    Steve

    Hi Steve,
    You should have a look at metalink, Doc ID 1059547.1
    If that does not help, there may be something else in Mater note ID 1353040.1
    Best regards
    Peter

Maybe you are looking for

  • No web access -- but mail works. Stuck!

    SUMMARY: No internet pages in any browser (although other computers on the same network do just fine), but email and network utility show the network connection is fine. Connecting to my server is also spotty. Reinstalling the OS hasn't fixed the pro

  • Usage of a specific infoobject in Queris/Workbooks

    Hi everybody. I'm going to add some nav. attribute to 0vendor infobject, and than I need to update many queries in which 0vendor exists by replacing the 0vendor by the new nav. attribute. I need to now in which workbooks/queries that are in use (in t

  • HT4260 Can I use a Netgear Universal WN3000RP Wi-Fi Range Extender?

    Can I use a Netgear Universal WN3000RP Wi-Fi Range Extender with my Airport Express to extend the range? If so, is there anything that I need to do in order to configure my computer for it to work properly? Are there any disadvanges to doing this (sp

  • Need urgent help in listing out checklist from DBA prespective for BI Implementation Project

    Hello Guys, We are in Designing phase Data Modeling of PDW/APS Implementation Project. I need urgent help in making a checklist from a DBA perspective. Like what are things ill be needing at a time of implementation/Deployment. Your expert comments a

  • Error at the time of Marketing Attributes Assignment to BP

    Dear Experts , I am facing some problem at the time of assignment of marketing attributes to a BP. it is giving me an error saying "Inconsistent characteristic value assignment". Please guide me how to go about it. Regards, Nikhil