Jordi,

Can you please update the wiki page with Martins suggestion for 1.5.x?

Regards,

Ernesto

On Tue, Nov 22, 2011 at 1:11 PM, Martin Grigorov <mgrigo...@apache.org> wrote:
> On Tue, Nov 22, 2011 at 1:13 PM, Jordi Deu-Pons <jo...@jordeu.net> wrote:
>> Hi,
>>
>>  I want to do an AJAX update and then start a file download.
>>
>>  I've found this solution for Wicket 1.4.x
>> https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
>>
>>  This is not working on Wicket 1.5 because this deprecated code:
>>
>> public void onRequest()
>> {
>>        getComponent().getRequestCycle().setRequestTarget(
>>                new ResourceStreamRequestTarget(getResourceStream(), 
>> getFileName()));
>
>    getComponent().getRequestCycle().scheduleRequestHandlerAfterCurrent(
>                 new ResourceStreamRequestHandler(getResourceStream(),
> getFileName()));
>
>
>> }
>>
>>
>> Which is the best way to do this in 1.5 ?
>>
>> Thanks!.
>>
>>
>> --
>> a10! i fins aviat.
>> J:-Deu
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to