Tuesday, November 29, 2011

Re: GWT compiler question(s)

Not really magic. It goes something like this:

Dev Mode Server (Your environment) <=> Browser Plugin

<=> Is a socket bi-directional channel.

That's an over simplification, but the Browser Plugin receives JS which it typically evals and loads/executes in the browser. So the JS is interpreted in the browser. The java code is not injected there, but JS. So what is manipulating the DOM at the end of the day is JS.

Regards,

Alfredo

On Nov 29, 2011, at 8:42 AM, David Vree wrote:

That still blows my mind.  I get that Java code can be compiled into Javascript, but I don't get how Java code running in a JVM manipulates the DOM of a browser. It's like magic -- and I hate magic!

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

No comments:

Post a Comment