Re: Best practice to serialize a org.w3c.dom.Document over RPC?

2010-07-05 Thread Richard Kennard
Perfect! Thanks for the detailed and fast responses guys. Richard. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to go

Best practice to serialize a org.w3c.dom.Document over RPC?

2010-07-05 Thread Richard Kennard
Hi guys, A (hopefully easy) question: what is the GWT 'best practice' to take a server-side DOM built with org.w3c.dom.Document and pass it over RPC? Clearly once on the client-side it needs to become a com.google.gwt.xml.client.Document, and I can achieve this by serializing to and from a String

Re: Metawidget, who has used metawidget

2010-06-03 Thread Richard Kennard
Sergio, Thanks for your interest in Metawidget! Metawidget is currently at v0.95, so it is not quite yet mature. However it has already been used in several production GWT projects and has decent documentation, examples, and test coverage. If you get chance to give it a try, I'd be happy to help

'Best practice' for unit testing servlets with init-params?

2009-09-25 Thread Richard Kennard
Hi guys, When unit testing a GWT app that uses servlets, it seems you cannot use the 'real' servlet definition in your app's web.xml. Instead you must put a 'servlet' element into your unit test's module.gwt.xml. However, the module.gwt.xml 'servlet' element is not as capable as the web.xml 'ser

Re: Hack my hack: how do I migrate FocusWidget::fireClickListeners to 1.6?

2009-05-22 Thread Richard Kennard
Brilliant. Just what I needed. Thanks! On May 22, 6:20 pm, Adam T wrote: > the following might > help:http://groups.google.se/group/Google-Web-Toolkit/browse_thread/thread... > > //Adam > > On 22 Maj, 09:58, Richard Kennard > wrote: > > > > > Hi guys,

Hack my hack: how do I migrate FocusWidget::fireClickListeners to 1.6?

2009-05-22 Thread Richard Kennard
Hi guys, In GWT 1.5 and earlier, I have been unit testing my click handlers as explained on my blog here... http://kennardconsulting.blogspot.com/2008/05/firing-onclicklisteners-in-gwt-unit.html ...this little hack no longer works in 1.6, because FocusWidget::fireClickListeners is gone - replac

Does TypeOracle.getType support parameterized types?

2009-04-03 Thread Richard Kennard
Hi guys, Is TypeOracle.getType, which the JavaDoc says 'finds a type given its fully qualified name', meant to work with parameterized qualified names? I've got a Generator that does... typeOracle.getType( myType.getQualifiedSourceName() ) ...and it works fine, but when I change it to... type

Re: Using JavaScript 'var s in obj' on a GWT object

2009-01-02 Thread Richard Kennard
Jason, Reinier, Oh, okay. Wow. It works completely fine in hosted mode, but crashes and burns in production mode. I guess I'll need to go back to using generators. Thank you both for your time, and for the heads up. Regards, Richard. --~--~-~--~~~---~--~~ You r

Re: Using JavaScript 'var s in obj' on a GWT object

2008-12-31 Thread Richard Kennard
Jason, Reinier, Thank you both for staying with me. I'm still a bit confused as to what you're saying versus what I'm finding works. In my project (Metawidget) I have some code that needs to dynamically reflect and invoke a method. Prior to the above discussion, I implemented this by doing...

Re: Using JavaScript 'var s in obj' on a GWT object

2008-12-30 Thread Richard Kennard
Reinier, Thanks for your quick response. I'm a bit confused, though. If... > GWT compresses the java identifier of any method or field down to a very > short random collection of symbols ...then how come I can still do... o...@org.foo.foo::myMethod()(); ...and even... alert( obj[ '@org.foo

Using JavaScript 'var s in obj' on a GWT object

2008-12-29 Thread Richard Kennard
Dear All, First, thanks for all your hard work on GWT. It really is a fantastic framework! Is there a reason why GWT-compiled JavaScript objects are not 'reflectable' like regular JavaScript objects are? When I do (in JSNI JavaScript): for( var s in obj ) { alert( obj[s] ); } I don't see an

Why are GWT JavaScript objects not enumerable?

2008-12-14 Thread Richard Kennard
Dear All, First, thanks for all your hard work on GWT. It really is a fantastic framework! Is there a reason why GWT-compiled JavaScript objects are not 'reflectable' like regular JavaScript objects are? When I do (in JavaScript): for( var s in obj ) { alert( obj[s] ); } I don't see any pro