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 something else, then I apologize for not answering it.) jay On Apr 5, 9:31 am, Freller <[email protected]> wrote: > 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); > } catch (Throwable exc) { > Window.alert(exc.getMessage()); > } > } > > public static void it(String style, String it) { > it("<html><head>"+style+"</head>\n<body>"+it+"</body></ > html>"); > } > > I did that so we could print both DOM elements and strings. > Perhaps I should treat DOM elements diferently adding them to the DOM > instead > of using the toString method? Anybody know if this will render faster > and/or more > correct prints? > > Jay, does this work for both 1.4 and 1.5 or it'll only work on 1.5? > > Regards, > Freller > > On Apr 3, 6:27 pm, jay <[email protected]> wrote: > > > > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
