Re: Problem with GWT Widget Printing

2009-04-07 Thread Andre Freller
Hi Jay, I was wondering if DOM.toString() works too on 1.4, I tested and it does work. I'll post a new version so it will work on 1.5 too. Regards, Freller On Mon, Apr 6, 2009 at 14:42, jay jay.gin...@gmail.com wrote: I'm not sure what you're asking... If you're asking if you can pass a

Re: Problem with GWT Widget Printing

2009-04-06 Thread HommeDeJava
Greetings, How about replacing DeferredCommand.add(printFrameCommmand); which is deprecated by DeferredCommand.addCommand(printFrameCommmand); Claude On Apr 5, 12:31 pm, Freller andre.frel...@gmail.com wrote: The beauty of open source! I haven't migrated to 1.5 yet, so this error is new to

Re: Problem with GWT Widget Printing

2009-04-06 Thread jay
I'm not sure what you're asking... If you're asking if you can pass a DOM element to your it method and have it work, then in 1.5 the answer is no...the implicit toString() call won't do what it does in 1.4. Which is why in 1.5 you need to use the DOM.toString() method... (If you're asking

Re: Problem with GWT Widget Printing

2009-04-06 Thread HommeDeJava
Hi Jay, It's working fine now with the DOM.toString() method you have suggested I was speaking about the deprecated method DeferredCommand.add... Sorry if I had been confusing! Thanks a lot for your great solution! Claude On Apr 6, 1:42 pm, jay jay.gin...@gmail.com wrote: I'm not sure what

Re: Problem with GWT Widget Printing

2009-04-05 Thread Freller
The beauty of open source! I haven't migrated to 1.5 yet, so this error is new to me. We will jump directly to 1.6. The Print class boil down to : public static void it(String html) { try { buildFrame(html); DeferredCommand.add(printFrameCommmand); }

Problem with GWT Widget Printing

2009-04-03 Thread HommeDeJava
Greetings folks, I have an application developed in GWT and I would like to print tall GWT widgets (i.e. taller than one page). I found a method that works with Safari and Chrome browsers but it didn't work with FireFox. Maybe, it's related to the fact that Safari and Chrome are based on the

Re: Problem with GWT Widget Printing

2009-04-03 Thread jay
It seems that prior to GWT 1.5, element.toString() did the right thing. When I moved to GWT 1.5.3, I had to switch to using DOM.toString( elem ); jay On Apr 3, 11:53 am, HommeDeJava claude.coulo...@gmail.com wrote: Greetings folks, I have an application developed in GWT and I would like to

Re: Problem with GWT Widget Printing

2009-04-03 Thread HommeDeJava
Hi Jay, Using DOM.toString(obj.getElement()) I get something more usable. no more [object HTMLDivElement] or [object] There's still some problems but I'm out of the dark age! Thank you so much! Claude On Apr 3, 5:27 pm, jay jay.gin...@gmail.com wrote: It seems that prior to GWT 1.5,