Re: Using GWT only for UI design

2011-04-19 Thread Harald Schilly
On Tue, Apr 19, 2011 at 00:19, The Main Meyn  wrote:
> Does GWT have an XML parser, so that I could make sure all my servlets
> return an XML.
>

Yes

> For example how would I get a combo designed using GWT to load the
> following servlet.
>
> http://202.54.180.145/Global/AddrXmlServlet?country_id=100


1. you need an event when to load the data. e.g. at startup or when
you press a button.

2. the request builder does the http ajax call.

http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideHttpRequests

3. the returned data needs to be parsed with the xml parser and based
on what is there, fill in the items into the combo box:

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsXML.html

Also, read in the GWT API about XML Node and Element!

So, to get started, please read those articles, add these lines




to your module's xml description file, and you are ready to go.

H

-- 
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: Using GWT only for UI design

2011-04-18 Thread The Main Meyn
Does GWT have an XML parser, so that I could make sure all my servlets
return an XML.

For example how would I get a combo designed using GWT to load the
following servlet.

http://202.54.180.145/Global/AddrXmlServlet?country_id=100


On Apr 16, 1:01 am, Harald Schilly  wrote:
> On Friday, April 15, 2011 12:17:31 AM UTC+2, The Main Meyn wrote:
>
> > I am ready to modify the servlets  according to
> > what is required by GWT.
>
> If you don't plan to use GWT's own RPC mechanism (what you have implied, it
> think), you do not have to modify your servlets at all - you just have to
> statically serve GWT's compiled javascript files. GWT can handle anything
> javascript is capable to do. How do you communicate with the servlet? Look
> up "RequestBuilder" to get some data from the servlet and if it is speaking,
> for example, JSON, there is a JSON parser. You can also read about wrapping
> javascript objects directly inside GWT.
>
> H

-- 
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: Using GWT only for UI design

2011-04-15 Thread Harald Schilly
On Friday, April 15, 2011 12:17:31 AM UTC+2, The Main Meyn wrote:
>
> I am ready to modify the servlets  according to 
> what is required by GWT.


If you don't plan to use GWT's own RPC mechanism (what you have implied, it 
think), you do not have to modify your servlets at all - you just have to 
statically serve GWT's compiled javascript files. GWT can handle anything 
javascript is capable to do. How do you communicate with the servlet? Look 
up "RequestBuilder" to get some data from the servlet and if it is speaking, 
for example, JSON, there is a JSON parser. You can also read about wrapping 
javascript objects directly inside GWT. 

H

-- 
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: Using GWT only for UI design

2011-04-15 Thread rjcarr
You'll probably want to read most of what is here:

http://code.google.com/webtoolkit/doc/latest/DevGuide.html

And here:

http://code.google.com/webtoolkit/doc/latest/tutorial/index.html

But generally just go here:

http://code.google.com/webtoolkit/overview.html

On Apr 14, 3:17 pm, The Main Meyn  wrote:
> I would like to know how I could draw my boundaries with GWT; I want
> to use it only for UI design; I have a project with Tomcat/ MySQL /
> simple MVC framework / I am ready to modify the servlets  according to
> what is required by GWT, is there a small tutorial that could help me
> with such a situation.

-- 
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.



Using GWT only for UI design

2011-04-14 Thread The Main Meyn
I would like to know how I could draw my boundaries with GWT; I want
to use it only for UI design; I have a project with Tomcat/ MySQL /
simple MVC framework / I am ready to modify the servlets  according to
what is required by GWT, is there a small tutorial that could help me
with such a situation.

-- 
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.