Hi

I have been using castor successfully with gwt to generate the domain objects passed using gwt-rpc.

I have had to make a few hacks to munge the generated beans (fixed I believe in the latest source generator).

The main remaining problem is that I have to switch off marshalling otherwise the gwt javascript compiler complains. This is a bit of a pity because I would like to populate objects from xml files. I have come up with one hack whereby I generate one version of the xsd without marshalling for use with gwt and another version which contains the marshalling code so that I can read xml file; I then use a bean copy utility to copy from one bean to another. This is a bit clunky.

Any other ways that i could get round this?

One nice solution would be if the marshalling code could be in a separate class/package which I could then instruct the gwt javascript compiler to ignore. Would that be feasible?

James

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to