Re: URGENT-Generating gwt web pages

2012-04-24 Thread vanessa vanessa
You mean the existing Generation tools of GWT ... i have to implement a
generator using a template engine
the existing tools don't fit my needs.

Le 24 avril 2012 13:10, Martin Trummer  a
écrit :

> >I have a model which contains data(an xmile file) which i've
> already converted to a model object.
> and why don't you use this existing generation process to also generate
> the packages, that you mention?
>
> --
> 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/-/CdVeBm8VFgoJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-24 Thread Martin Trummer
>I have a model which contains data(an xmile file) which i've 
already converted to a model object.
and why don't you use this existing generation process to also generate the 
packages, that you mention?

-- 
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/-/CdVeBm8VFgoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-23 Thread vanessa vanessa
Hi Alan ,
Thank you for your help and for your collaboration.
I think i didn't make my self clear enough.My problem isn't converting XML
to Java
i'm not needing marshalling and unmarshalling .I have a model which
contains data(an xmile file) which i've already
converted to a model object.
I 'll have to implement a generator that uses this data to create
automatically gwt classes.I'll have to generate
all the packages i mean by that the client package ,the shared package and
the server one automatically.

Since velocity is a good solution , i'll generate theses classes with
velocity from scratch.I was searching if anyone
implemented such a gnerator before and so can help me with some advice.
Thanks a lot again.And good luck every body.

Le 23 avril 2012 15:36, Alan Chaney  a écrit :

>  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/DevGuideCodingBasicsCompatibilityfor
>  more information.
>
>
> Regards
>
> Alan
>
>
>
>
>
>
>
>
>
>
>
>
>
>  Thanks a lot .
>
> Le 23 avril 2012 09:26, Thomas Broyer  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 google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> 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 google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-23 Thread Alan Chaney

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 > 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
google-web-toolkit@googlegroups.com
.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
.
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-23 Thread vanessa vanessa
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 .

Thanks a lot .

Le 23 avril 2012 09:26, Thomas Broyer  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 google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-23 Thread Thomas Broyer


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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-23 Thread vanessa vanessa
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.

Thanks for your help.


Le 23 avril 2012 06:11, Kanagaraj M  a écrit :

> what you mean by entry. Are you trying to generate gwt models from what?
>
> Velocity would be the right choice.
>
> If you are gonna write complex template Freemarker would be a better one.
>
>
> On Saturday, 21 April 2012 22:03:19 UTC+5:30, vanessa vanessa wrote:
>>
>> Hello ,
>>
>> I have to create a generator that generates gwt code from a model as an
>> entry.
>> Can any one help me how to proceed ? And which template engine to choose ?
>> Is velocity a good solution .
>>
>> Thanks a lot.
>> Regards
>>
>  --
> 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/-/tbPLbnnSXdQJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-22 Thread Kanagaraj M
what you mean by entry. Are you trying to generate gwt models from what?

Velocity would be the right choice.

If you are gonna write complex template Freemarker would be a better one.


On Saturday, 21 April 2012 22:03:19 UTC+5:30, vanessa vanessa wrote:
>
> Hello ,
>
> I have to create a generator that generates gwt code from a model as an 
> entry.
> Can any one help me how to proceed ? And which template engine to choose ?
> Is velocity a good solution .
>
> Thanks a lot.
> Regards
>

-- 
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/-/tbPLbnnSXdQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: URGENT-Generating gwt web pages

2012-04-22 Thread Freddie Jefferson
Vanessa, 
 
I don't understand your first statement. As far as the template engine goes, 
velocity is a great templating engine.

Regards,
Freddie Douglas Jefferson 

On Apr 21, 2012, at 11:33 AM, vanessa vanessa  wrote:

> Hello ,
> 
> I have to create a generator that generates gwt code from a model as an entry.
> Can any one help me how to proceed ? And which template engine to choose ?
> Is velocity a good solution .
> 
> Thanks a lot.
> Regards
> -- 
> 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/-/0Nq42Ig-6FcJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



URGENT-Generating gwt web pages

2012-04-21 Thread vanessa vanessa
Hello ,

I have to create a generator that generates gwt code from a model as an 
entry.
Can any one help me how to proceed ? And which template engine to choose ?
Is velocity a good solution .

Thanks a lot.
Regards

-- 
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/-/0Nq42Ig-6FcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.