James,
James Cowan wrote:
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.
Mind explaining to us the reason for this ? I'd like to underrstand that
a bit more in detail before thinking about any possible resolutions.
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?
Not sure, but possible.
But let's first talk about the problem.
James
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email