I tried use the request builder:

String url="download"; (Servlet's name)
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);

builder.sendRequest(param,new RequestCallback(){

*public* void onError(*Request* request, *Throwable* exception) {
                                                      *MessageBox*
.alert(exception.toString());

}

*public* void onResponseReceived(*Request* request, *Response*
response) {

*With the response, How to render window's download?*

The object response have some methods like* getText()* among others.

Do you already have a example code for similar task? (Download call in event
onclick() or other of the button or other component.)

}

}


Thanks.
--------------------------------------------------------------------------------------------------
"Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
com ele conquistará o mundo." (Albert Einstein)
╔════════════════════════════════════════╗
  ROMERYTO VIEIRA LIRA
  Bacharelando em Ciência da Computação - UFCG
  Membro do SegHidro2 - LSD - http://seghidro.lsd.ufcg.edu.br
  Membro do Grupo de Suporte Guardians - www.lcc.ufcg.edu.br
  Página Pessoal: http://romeryto.googlepages.com
  Blog: http://olhartecnologico.blogspot.com
╚════════════════════════════════════════╝

Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
ambiente.
----------------------------------------------------------------------------------------------------------------------------


On Tue, Dec 23, 2008 at 13:53, Bakulkumar <[email protected]> wrote:

>
> Hi,
>
> need to make two calls over here,
>
> -> first call is GWT RPC, on it, on server side you need to find a
> file and store it in HttpSession. once you get the response from this
> call
> -> on the GWt client side make another call by
> Window.open((String)resultURL,"App
>
> Name","menubar=no,toolbar=no,resizable=no,scrollbars=no,status=no,width=100,height=100,top=100,left=100");
>
> the resultURL should be handled by a servlet, which reads the data
> from session stored by first GWT Rpc call and dump it in response.
>
> Thanks,
> Bakul
>
>
> On Dec 20, 10:56 am, "Romeryto Lira" <[email protected]> wrote:
> > Hi,
> >
> > I need call a download's servlet when I click on Button or in Tree's
> node.
> > How to call a download's servlet for this?
> >
> > Thanks.
> >
> ---------------------------------------------------------------------------
> -----------------------
> > "Se um dia tiver que escolher entre o mundo e o amor... Lembre-se:
> > Se escolher o mundo, ficará sem o amor, mas se escolher o amor,
> > com ele conquistará o mundo." (Albert Einstein)
> > ╔════════════════════════════════════════╗
> >   ROMERYTO VIEIRA LIRA
> >   Bacharelando em Ciência da Computação - UFCG
> >   Membro do SegHidro2 - LSD -http://seghidro.lsd.ufcg.edu.br
> >   Membro do Grupo de Suporte Guardians -www.lcc.ufcg.edu.br
> >   Página Pessoal:http://romeryto.googlepages.com
> >   Blog:http://olhartecnologico.blogspot.com
> > ╚════════════════════════════════════════╝
> >
> > Pensou em imprimir este e-mail? Isto é mesmo necessário? Poupe o meio
> > ambiente.
> >
> ---------------------------------------------------------------------------
> -------------------------------------------------
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to