NOTE: I have posted in 'Open Discussion' instead of help because I see this more as a discussion on feasibility or technique. Moderators, if you feel this is not the case, please move it to the 'Help' forum. Thanks.
I am sending an AJAX request (via RequestBuilder from a Button) to get a PDF. However, instead of the PDF being rendered/opened in a new browser tab, the PDF data is sent back to my GWT app via the 'onResponseRecieved' method of RequestCallBack(). I suppose this is to be expected. How can I then take this data and force the browser to send a prompt to allow my users to save the PDF? Any thoughts?
Another approach that would work is if I could somehow call the PDF url via an anchor tag and the target set to '_blank'. But I'm not sure how my GWT app could set that up from a Button.
Any thoughts on how I can solve this problem?