On 4/23/2012 1:34 AM, vanessa vanessa wrote:
How it doesn't change anything ?
I!'m looking for some documentation and some recommendation .. I
didn't find through the net
someething that fits my needs .
The input to GWT is Java code. As Thomas said, you are looking for
something that takes XML and converts it to Java source.
Velocity (and Freemarker, for that matter) take Java models and convert
them to a textual representation, such as HTML or XML or just plain text
(for example, I generate the text of emails using Freemarker) so they
are not really much use in your case.
I suggest that you look at JAXB which "binds" XML to java -- in other
words, generates the java code required to represent an XML description.
There's also XStream and many others.
Your requirement means you will have to learn about XML binding and GWT.
The GWT developer docs are at https://developers.google.com/web-toolkit/
and you can go to http://jaxb.java.net/ for stuff on JAXB - or just
search Google using the search term ' xml binding java ' which will give
you lots of information and alternatives.
Finally, problems with converting XML --> Java are not really relevant
to this list, but if you have problems compiling the generated Java with
the GWT compiler, then this would be the place to ask on specific
debugging issues. There are limitations on the Java source that GWT will
compile - see
https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsCompatibility
for more information.
Regards
Alan
Thanks a lot .
Le 23 avril 2012 09:26, Thomas Broyer <[email protected]
<mailto:[email protected]>> a écrit :
On Monday, April 23, 2012 10:14:00 AM UTC+2, vanessa vanessa wrote:
Ok i'll provide further information. i have to create a
generator that uses the velocity engine ,it will generate a GWT
code which will be in turn compiled .
The entry of my generator is an xml file which i'm supposed to
transform to a model object . I'll generate therefore
the code from this model object .I wish i made my self clear.
The fact that the generated code will be compiled by GWT doesn't
change anything to your generating process.
So, write a Java program (with a main() et al.) that reads XML
and outputs Java code. What kind of help are you looking for?
--
You received this message because you are subscribed to the Google
Groups "Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/S4ndjgj-Q30J.
To post to this group, send email to
[email protected]
<mailto:[email protected]>.
To unsubscribe from this group, send email to
[email protected]
<mailto:google-web-toolkit%[email protected]>.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
--
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.
--
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.