Chapter 8. Building JSNI components
This chapter covers
Overview of JSNI
Passing Java objects to JavaScript
Calling Java code from JavaScript
Loading external JavaScript libraries
Wrapping JavaScript code as Java classes
GWT’s key benefit is the ability to abstract away from JavaScript, which frees the developer (you!) from concerns over browser differences and developing in an untyped programming language. But just as normal application code occasionally uses assembly-language segments for special needs, so client-side GWT applications can interact directly with JavaScript. In a normal application, you may use assembly code to get speed advantage or access hardware in the only way it can; for GWT applications, in our experience, there are four possible ...
Get GWT in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.