Af:commandToolbarButton to open a link but not navigate away from taskflow

I would like to be able to have the following
- a commandToolbarButton that when clicked upon downloads a document (by a simple URL call whos http response tells the browser to download the file, not open it)
- when click on the arrow on the right of the button, get a list of other download/open options for the document
To get a document/document rendition, we simply make a URL call, so the options in the command buttons drop down is simply goMenuItems that go the URL obtained from the backing bean. I want the same behaviour as a goMenuItem on the actual button when it is clicked on.
I have the following
<af:commandToolbarButton text="#{dlBndl.VIEWDOC_DOWNLOAD}" id="dlvtrm" >
<f:facet name="popup">
<af:menu text="" id="dlvtrm1">
<af:goMenuItem text="#{dlBndl.VIEWDOC_OPEN_NATIVE}" id="dlvtrm2"
destination="#{pageFlowScope.prprts.item.url}#{pageFlowScope.prprts.portletLinkPostfix}"
rendered="#{pageFlowScope.prprts.item.nativeFileWebViewable}"
targetFrame="_blank"/>
<af:goMenuItem text="#{dlBndl.VIEWDOC_OPEN_PDF}" id="dlvtrm3"
destination="#{pageFlowScope.prprts.item.webRenditionURL}#{pageFlowScope.prprts.portletLinkPostfix}"
rendered="#{pageFlowScope.prprts.item.webViewableAvailable}"
targetFrame="_blank"/>
</af:menu>
</f:facet>
</af:commandToolbarButton>
I can not work out how to have the button click go to a url like the goMenuItem's. I have tried adding an action to my taskflow and using that on my button, but its not working
<url-view id="downloadNativeFile">
<url id="dldv78">#{pageFlowScope.prprts.item.downloadNativeFileURL}</url>
</url-view>
<control-flow-case id="dldv82">
<from-outcome id="dldv83">downloadNativeFile</from-outcome>
<to-activity-id id="dldv84">downloadNativeFile</to-activity-id>
</control-flow-case>
Attempt 1:
<af:commandToolbarButton text="#{dlBndl.VIEWDOC_DOWNLOAD}" id="dlvtrm" action="downloadNativeFile">
when the button is clicked on, the file did ask to be saved, but then nothing else on my page works, i can not even click on the arrow of the button to see the drop down list of options
Attempt 2:
<af:commandToolbarButton text="#{dlBndl.VIEWDOC_DOWNLOAD}" id="dlvtrm" action="dialog:downloadNativeFile" useWindow="true">
Now when the button is clicked on nothing happens, the page doesnt break though.
Question: How do i get behaviour that when a user clicks on the actual commandToolbarButton it goes to a URL (like the goMenuItem) but does not break my page so i can carry on using my page.
I have tried having an action, and then in my taskflow to go to a URL view,
<af:commandToolbarButton text="Google"
action="goToGoogle">

i.e. with a goMenuItem/goLink you would have
<af:goMenuItem text=""DOWNLOAD file"
destination="http://download.oracle.com/docs/cd/E10316_01/ContentIntegration/Pdf/cis-administration-guide.pdf"
targetFrame="_blank"/>
<af:goLink text=""DOWNLOAD file"
destination="http://download.oracle.com/docs/cd/E10316_01/ContentIntegration/Pdf/cis-administration-guide.pdf"
targetFrame="_blank"/>
i.e. i would like to do the exact same thing for the commandToolbarButton when you click on it, as if it was
<af:commandToolbarButton text="DOWNLOAD file"
destination="http://download.oracle.com/docs/cd/E10316_01/ContentIntegration/Pdf/cis-administration-guide.pdf"
targetFrame="_blank"/>

Similar Messages

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

  • URL opens in Safari but not Firefox

    I've uploaded all files properly, and I keep hearing that
    it's something to do with my path. I'm not 100% familiar in
    Dreamweaver, so I could be overlooking something, but when this
    non-working html doc is compared to a similar one (different only
    in the image displayed), everything is the same. One works
    perfectly, the other does not.
    Is there any reason a page would open in Firefox, but not in
    Safari? The link is
    http://www.myriadmedia.net/honduras.html
    Any help would be appreciated.
    Thanks

    looks like the source for the image file is messed up. i'm
    not sure how it's working in safari!
    here's what you have:
    http://www.myriadmedia.et/honduras.jpgn
    should be:
    http://www.myriadmedia.net/honduras.jpg

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • Downloaded certain files from my old computer on a memory stick.Have inputted stick into my new mac and can open PDF files but not xlr,aww or eps files.Is there a solution to this please?

    Transferred certain files to my new Mac from my old computer via memory stick.Can open PDF files but not xlr,aww or wps ones.The important ones are in xlr format.Is there a solution please?

    My guess is they don't care. Most likely they're illiterate and don't know what a colon is for. They probably think it's a little-used character. Remember: these are the people who don't know the difference between "deprecate" and "depreciate".
    I have the same colon problem as you do. But it's not the biggest problem I have encountered in Lion. If it was only that I'd be Mr. Delighted with Lion. There's worse than having a colon - uh -  that won't cooperate. A lot worse, in Lion.

  • I have files that will open in Quicktime, but not itunes. Anyone that can help me, please

    I have files that will open in Quicktime, but not itunes. Anyone that can help, please?

    run the MP3's by MP3 Validator and see what happens.

  • Status are "open" in CRM but not same shown in replicated sales Doc.

    Dear Experts,
    Status are "open" in CRM but not same shown in replicated sales Doc ( R/3 ). please suggest with optimal solution.
    Regards,
    Sany

    Hi Sai,
    Thanks for your response, I am using PFAL transaction to transfer the employees from ECC to CRM. and I am using only one emplyee for execution, is there any other transactions to replicate employees.
    In ECC, after executing the PFAL transaction, getting successful transfer of IDoc message with green light.
    In CRM in WE02, it is showing yellow light for the same IDocs.
    but even with yellow light (Warning) some employees are successfully converting into BPs, but some employees are not converting.
    I could not trace the problem that, why it is happening. IDocs are reaching to CRM system, but some idocs are not converting into BP where as some IDocs are converting into BPs successfully.
    Please help me to resolve this issue.
    Your suggestions will be highly appreciated.
    Best regard
    Raghu ram

  • A website will open via wifi but not via 3G. Is this a setting on the iPad?

    A website will open via wifi but not via 3G. Is this a setting on the iPad?

    Probably not.  How's your 3G connection?  I ask because I've had issues when the 3G connection isn't strong.  Same with WiFi too, actually.

  • I have been running elements 12 for a few months now....today when I tried to open the editor I get " Visual C  C  runtime error. I can open the organizer but not the editor

    I have been running elements 12 for a few months now....today when I tried to open the editor I get " Visual C  C  runtime error. I can open the organizer but not the editor

    I'm keen to know if you get a response to this.  I've been running Elements 12 for a year now, and suddenly my Editor is not working.  I'm running Windows 8.1 and just get a message that says "The Editor is not working".    Not very helpful.

  • Lightroom open Photoshop CC but not the files

    When in Lightroom and I click on lets say 3 selected photos and want to open them in Photoshop HDR Pro or as layers, it opens CC fine but not the files. Any ideas? It's the same problem in open in CC as layers or Panorama. None of the files open in CC.

    photosbyfry, jonhillenbrand, Many users have reported the same issue and we are working on a fix.
    In the mean while, i would suggest you to follow the suggestions mentioned under the below article and check if that helps.
    Edit In doesn't work in Lightroom 5.5 from Photoshop CC 2014
    Let me know in case you still get the same issue.
    Regards
    ~ Arpit

  • My iPhoto hangs right after it opens - i can open it remotely but not on my main machine

    My iPhoto hangs right after it opens - i can open it remotely but not on my main machine

    Before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. With information, s/he may be able to get your issue resolved sooner.

  • HT4753 would number automatically save an .xlsx file I opened and modified but not saved? I've lost a file with many edits...

    would number automatically save an .xlsx file I opened and modified but not saved? I've lost a file with many edits...

    kearly - thanks a million for posting both the question & the reply! I just unchecked that little box by accident, & couldn't figure out for the life of me how to fix it. Thanks again!!

  • I have CS6 and need to be able to utilize the open GL option but not sure what I need to do to make

    I have CS6 and need to be able to utilize the open GL option but not sure what I need to do to make this work...trying to bring a 3D pdf into photpshop for animation. Screen simply reads "enable 3D view'.

    my goal is to bring 3d solidworks drawing files into photoshop and animate. one export option is a 3d pdf file which opens and rotates well in Acrobat pro...but when trying to bring it into photoshop. It looks like the attached pic."enable 3d view"

  • Using Outlook 2007 I want to receive emails on my iPhone 4 only when Outlook is NOT open on my computer, as when away from home or want to quickly check email when computer is not turned on. Either ALL emails come to my iPhone or none at all.

    Using Outlook 2007 I want to receive emails on my iPhone 4 only when Outlook is NOT open on my computer, as when away from home or want to quickly check email when computer is not turned on. Either ALL emails come to my iPhone or none at all. Is the setting I need to change in Outlook or on the iPhone or is it somewhere else?  I used to have this setting but transferring Outlook to a new laptop somehow turned it off.

    No. You really can't do that. Not easily at any rate. You would have to set them both up to use POP3, but even then there is no way to guarantee that the phone won't poll the server prior to your computer doing so, pulling down the message from the server.

  • How to allow some fixed extension go in from outside to inside but not allow go from inside to outside

    how to allow some fixed extension go in from outside to inside but not allow go from inside to outside
    for example, allow JPEG, MOV, AVI data flow from outside to inside
    but not allow JPEG, MOV, AVI files access or upload or get by outside, in another words not from inside to outside
    how to configure?

    Hi,
    The ZBF link sent earlier show how we can inspect URI in http request
    parameter-map type regex uri_regex_cm
       pattern “.*cmd.exe”
    class-map type inspect http uri_check_cm
       match request uri regex uri_regex_cm
    ZBf is the feature on Cisco routers and ASA though concepts are little same but works differently. However it is important that you can be more granular with the protocol (layer 7) inspection only. Like on ASA if you will try to restrict .exe file from a p2p application that won't be possible, But on router you have some application for p2p in NBAR and you can use it file filtering. Please check configuartion example for both devices.
    Thanks

Maybe you are looking for

  • Acrobat Pro Extended 9 with Adobe LiveCycle PDF Generator 8.2.1. This Is Work ?

    Hi I'm having problems to get LCES PDF-generator. After install Adobe LiveCycle PDF Generator  8.2.1 and Acrobat Professional 8.1.5 all work perfect. The Question is - "Adobe LiveCycle PDF Generator 8.2.1  with  Acrobat Pro Extended 9 NOT WORK. Becau

  • CASE WHEN statement IS NULL THEN  ......

    -- i've table's acoount and owner create table account ( code-number(30) , name-nvarchar(200))  create table owner ( code-nvarchar2(20 BYTE) , name -nvarchar(100), account_code-number(30))  account_code is foreign key code name account_code 1.1 a 1.1

  • Linksys E1500 slow linespeed wired or wireless

    My linespeed drops to about half when I connect my Cable Modem to the E1500. Using the same port and cat cable the speedtest gives 19.6 mbs but after plugging into the E1500 using the same PC connected to the 10/100 port it drops to 8.6, wired or wir

  • "SQL Query in HTTP Request" (5474:0)

    Hi, The IDS signature "SQL Query in HTTP Request" (5474:0) does not recognize all malicious SQL selects. Currently, the reg exp looks like [%]20|[=]|[+])[Ss][Ee][Ll][Ee][Cc][Tt]([%]20|[+])[^\r\n\x00-\x19\x7F-\xFF]+([%]20|[+])[Ff][Rr][Oo][Mm]([%]20|[+

  • CIF: integration model

    Hello, I have a net failure some hours ago when I was trying to generate an IM, and now, transaction cfm1 is always displaying the same message for my IM: "This model is currently being processed by user " I have tried to activate/deactivate the IM (