Disabling a download button with fileDownloadActionListener onclick

I have a download button with fileDownloadActionListener . I want to diable the button onclick to download the file. Now its showing the enabled condition so that user can click again and again;
<af:commandButton text="Download Projects to Excel" id="cb2"
>
<af:fileDownloadActionListener filename="projects.xls"
method="#{DownloadExcelListener.fileDownload}"/>
</af:commandButton>
Thanks
Suneesh

Try setting blocking="true" on the button.
Pedja

Similar Messages

  • Disable Advanced Listpane button with Calculation Rule

    Hello everyone,
    I'm trying to disable a button on an Advanced Listpane using a Calculation Rule.
    This is my advanced listpane:
    The button I'm trying to disable is the "Copy"-button.
    It has to be enabled when the row is active, meaning "Inactive" = false and disabled when the row is inactive, meaning "Inactive" = true.
    As you can see, the button is now always disabled, even for active rows.
    I'm currently trying this Calculation Rule code, but obviously it doesn't work:
    Is what I'm trying even possible?
    And if so, what am I doing wrong here?
    Thanks & Regards,
    Glenn

    Hi, Glenn
    What do you mean by "Active" and "Inactive"?
    result = false;
    if ($data.DataList.LeadSelectedIndex > -1 )
    result = true;
    end
    If you write it in Enabled property of your button ,that code will disable your button when no row is selected.
    And your button will be enabled again when a row is selected.
    I am not sure if this is what you want.
    Regards,
    Fred.

  • Download button with f4 option

    hai
    I need to get a f4 help for download path parameter. if i click f4 on parameter it need to ask me path to save instead of path to open.
    regards

    Hi,
    Try this:
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_OUTPUT.
      CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
       FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = P_OUTPUT.
    START-OF-SELECTION.
    Warren

  • Disable Photo Download Link

    Does anyone know how to disable the download button in the albums? I looked around and I couldn't find any way of removing the button. I don't really want to have to password protect my site and only allow specific people access, but it is the only alternative I see to stopping people from being able to download my images at will. They are of course small res images, not usable for printing, but still, I'd rather not give people the opportunity to snag my work. Any ideas on how to work around this?
    Any advice on these issues would be greatly appreciated.
    Thanks very much.

    So, I gave this a try - putting a box over the download button that is the same color as the background to mask it and it works to a certain degree. The problem with it is that the download button on that third view (the larger image with the thumbnails that scroll across the top) is in the same spot at the subscribe button on the previous page (the page that is the actual album page with all of the photo thumbviews on it). So if you put a box over the download button, it also covers up the subscribe button on that previous page, because somehow the two pages are linked. Now if you don't care if people can subscribe to your pages or not, this solution works. But, if like me, you would like to encourage people to subscribe to the feed (rather than having to send out a massive email every time a new photo is uploaded) then this method will not work.
    Thanks for the suggestion though Roddy, on the basic level it makes perfect sense and is a viable work around to the problem.

  • Download Button not a Toolbar Option in Safari 8.0.2

    I'm running Yosemite on a late 2010 MBP with Safari 8.0.2 and the "Download" button with the down-arrow is not a possible option in the VIEW / CUSTOMIZE TOOLBAR section.  Is anyone else having this problem, or can anyone tell me where it is?
    Thanks,
    Alex

    Are you running any Safari extensions that modify the toolbars?
    I have the download button in 8.0.2:
    It set up that way under Mavericks and Safari seems to have kept the same settings for YO when I upgraded last week.
    and this is supposed to reveal the download button on my toolbar?
    Take a breath! I believe Dominic is giving you good advice. The download button may not appear until you actually download some to go into the Downloads folder--worth a try.

  • DOWNLOAD BUTTON DISABLED AFTER UPDATE WITH NEW VER...

    Hi.. After update my E72 with newer version of OVI store, download button has been disabled and unable to download anything from OVI store. Further I m also unable to update the files in "sign in software" in ovi files... please help me fast, what should I do??? 

    Hi DD16, Welcome to the Nokia Forums.
    Please be try and sign out of your nokia account and relog back in, also be sure that you are connected to a stable WiFi connection, and also make sure that you have enough free space on your phone memory to install any new applications.
    If you still experience issues with your store account please try and install Store QML from betalabs.
    Please let me know if your problem persists or not.
    Sheldrick
    Press the 'Accept As Solution' icon if I have solved your problem, Kudos my post if my advice has helped you!

  • When I try to download a free or purchased APP I get a box that says userID is disabled and a push button with "OK". I can't download any apps

    when I try to download a free or purchased APP I get a box that says userID is disabled and a push button with "OK". I can't download any apps

    Depending on why it's been disabled, you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
    Or you might need to contact Apple : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    If it then works on your computer's iTunes but not your iPad then try logging out of your account on the phone by tapping on the id in Settings > Store and then log back in and see if that 'refreshes' the account on it

  • Download Button in OVI is disable in my N96 mini

    HI,
    From last few weeks when i am trying to downlaod and app from OVi,  its showing download button as disable.
    I search n this forum, but this issue is which is discussed here was related to re-downloading the apps.
    FOr me when even i am trying to install a new app also, download button is disable.
    What can be the issue..?
    how to resolve this.?
    Thanks..

    You can try these steps: 
    To uninstall: 
    Menu> Settings> Application manager> Installed apps> uninstall Nokia Store Client, Nokia Store, and Nokia Store Launcher.
    To install the latest version of Nokia Store, just open Nokia Store from the menu list and choose update. Install the application when prompted. The latest version should be 1.30.(8).
    Check also with Nokia Suite if you are using the latest software on your phone.
    If you think this post is helpful, please click the white star below.

  • 5800 download button disabled

    I have recently updated my nokia ovi on the cellphone. 
    Now I am not able to download any app which I had previously downloaded too.
    If I go to 'my stuff', and select an app, the download button becomes grayed and is disabled.
    Please tell me how to correct this thing.
    tw ge

    I'm sorry but your answer isn't of any use and i am suffering the very same issue.
    What is actually happening is that even though I have removed the applications from the 'my stuff' list, (record of downloaded software) the application download buttons are still disabled.
    It has nothing to do with the phone as you suggest, the problem is with Ovi website. for I have clean booted my N97 with a hard reset and wanted to reinstall all previous applications. however since the Ovi site update, I have been unable to do so.
    All software that I wish to re-download has been removed from the 'my stuff' listing. so in theory the software should now become available again for download (as it used to be in the older version of Ovi). Yet I cannot select the software for download, no matter what I do, it seems that either Ovi never clears it's cahe or they choose to prevent users from downloading FREE software once they have downloaded it. (unlikely).
    So come on, someone from Ovi, please research this problem and come back with a solution or at least a proper reply.

  • HT203433 I downloaded apps with one appleid on my iphone.  When my account was disabled I set up a new appleid & account.  Now I cannot update apps on my iphone that were downloaded with original appleid when I login with my new apple id.  What do I need

    I downloaded apps with one appleid on my iphone.  When my account was disabled I set up a new appleid & account.  Now I cannot update apps on my iphone that were downloaded with original appleid when I login with my new apple id.  What do I need to do?

    You can write into support and ask for help reenabling the account through this link here:
    http://www.apple.com/support/itunes/contact/
    Since the applications were purchased on the older account, you will need to log into that account to update them. The newer account will not recognize the purchases because they are not a part of the purchase history for the specific account.

  • I am unable to install the latest version of Muse 2014. When I open Muse it comes up with a 'new version is available' and when I click on 'install now' it takes me to the adobe muse website where I click on the 'Download' button. It will then come up wit

    When I open Muse it comes up with a 'new version is available' and when I click on 'install now' it takes me to the adobe muse website where I click on the 'Download' button. It will then come up with 'Muse is downloading now'. It will then take me back to the Muse app again with the same 'install now' message. The new version has not installed, could some one please let me know the reason why it isn't installing.

    Hi Jeff I have uninstalled Muse from my applications and have tried to download the new version but it displays a message 'file not found'. I have included a screenshot.

  • How do I disable Firefox's Download functionality, I would like to use another download manager with Firefox...many thanks Bruce

    Hi I am using version 3.6.15 with Windows 7, I would like to use another download program in place of Firefox's default option, how can I disable this in Firefox
    Many thanks
    Bruce Baxter

    Use this extension to integrate an external download manager with Firefox. <br />
    https://addons.mozilla.org/firefox/220/<br />
    http://www.flashgot.net/whats

  • HT4059 How do I download a previously purchase nook iBook? It shows up in my b&n library with a download button that does nothing

    How do I download a previously purchase nook iBook? It shows up in my b&amp;n library with a download button that does nothing

    Additional info..... I have the new ipad3 and was told by Verizon salesman that you can see nook iBooks on the ipad3

  • I am not able to do a software update as the download button is disabled. Why and any advise may i upgrade my software

    I am not able to do a software update as the download button is disabled. Why and any advise may i upgrade my software

    The download button will be disabled if you are not on a WiFi connection at the present time.
    My 4G/LTE connection is actually faster than my available WiFi (in this present location), but those are the rules...

  • Why doesn't anything happen when I hit the download button for Mavericks OS X?  I have a MacBook Late 2009 with Lion 10.7.5.

    Why doesn't anything happen when I hit the download button for Mavericks OS X?  I have a MacBook Late 2009 with Lion 10.7.5.

    Down load fron the Internet OmniDiskSweeper (free) and open it.  It will show you all of your files and the respective sizes.
    In addition, click on your HDD icon in the upper right hand corner of your desk top with COMMAND I (I as in the letter i).  What does it say about the space used and available.
    You may be experiencing this phenomenon:
    http://pondini.org/TM/30.html
    Ciao.

Maybe you are looking for