On Tue, Nov 18, 2008 at 5:22 PM, Renzo Tomaselli
<[EMAIL PROTECTED]> wrote:
> Hi all,
>   usually I include tr:fileDownloadActionListener from a link - no problems.
> Now I would use it from a menu action (jscookmenu, used as a context-menu).
> I know about the long way:
>
> 1. select a blob to download from the menu action.
> 2. render tr:fileDownloadActionListener inside a hidden button (using PPR).
> 3. include a js chunk to click that button immediately upon rendering.
> 4. service the download method while processing that click (PPR again).

file downloads must be processed with an ordinary request (not XMLHttp
AJAX requests).

-M

>
> This sequence simulates the placement of a button on the fly, and its
> immediate clicking to enable blob downloading.
> Now I wonder if I can shortcut steps 2-4, avoiding the client roundtrip in
> step 3 which doesn't provide any UI visible effect.
> I known I might render an object/iframe - thus doing it manually - but I
> would like to avoid it if possible.
> Thanks for any suggestion,
>
> -- Renzo Tomaselli
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Reply via email to