A compiled GWT application consists of fragments of HTML, XML, and JavaScript. However, these are pretty much indecipherable, and the compiled application is best regarded as a black box -- GWT's equivalent of Java bytecode.
more like AWT, SWING
can add css style
In GWT terminology, client code communicates with services running on the Web server. RPC calls in GWT are between JavaScript code (client) and Java code (server)
JavaScript Native Interface (JSNI): JSNI lets you make JavaScript calls directly from GWT client Java code. JSNI uses a cunning combination of the Java language's
native
keyword and JavaScript embedded in a special java comment block.Because GWT services are just HTTP servlets, they can be integrated easily into Struts or SpringMVC, for example, and placed behind authentication filters.
advantage:
- Share the same validation class between both tiers
- Unite testing for client side code.
No comments:
Post a Comment