Another way, I created the report using RPC and then I 'window.opened'
a new window with the URL of a servlet and the proper ContentType.
The report was opened in a new window with Acrobat (PDF), Excel
(XLS), ...


On May 11, 7:44 pm, Sergio Silva <sdcsi...@gmail.com> wrote:
> Just to let everyone updated the only 'clean' way i found to solve
> this problem.
>
> Instead of making a RCP call to generate the report (i believe this
> was the cause of may problem), I've created a Hidden form with hidden
> components, filled with all atributes i needed, what is posted when
> the user clicks the print button.
>
> About the Timer Solution...
>
> It makes the browser complain again.
>
> This topic is closed.
> Thanks Tony Strauss.
>
> On 7 Maio, 16:28, Tony Strauss <tony.stra...@designingpatterns.com>
> wrote:
>
> > I'm not sure that I have anything to add with respect to the original
> > problem, except that I think that using Window.Location.assign is a
> > better way to go (not sure how/why it isn't working for you).
>
> > > while(control.size() == 0){
> > > //do nothing.
>
> > > }
>
> > I think that this is a bad move.  This will be an infinite loop
> > because Javascript is single-threaded.  In fact, I don't think that
> > your asynchronous rpc handler ever is getting exercised, because this
> > loop will tie up the Javascript thread.  If you really want to do
> > something like this, you need to do it periodically on a Timer.  
> > See:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> > Tony
> > --
> > Tony Strauss
> > Designing Patterns, 
> > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to