Thursday, October 2, 2014

Rich HTML5 Web Apps: Typesafe Edition 2

Java web framework errai.

Web design vs web development. What's the overlap?
Jsps hard to deal with.
Angular.js also mixes logic and design.
Take plain html and attach behavior with java.

@templated @page annotated class
@datafield textbox, button
@eventhandler for click event

Java class same name as html template.
Id html attributes line up with java members

Compile source files twice., javac, and gwt to get runnable js
Java to js compiler
Cross browser
Up front optimizations
Client and shared folder contents are compiled to js.

Security, cdi, jpa, mobile support, databinding, page navigation

Vertical repetition: code duplication between client and server.
Horizontal repetition: code duplication in client.

Can use jax-rs annotations

Can debug.

@RestrictedAccess for security. Can be constrained for roles.

3 comments:

  1. Very interesting. Thanks Craig.
    Have fun !

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Good one! It delivers many interesting features which is useful for user. I really like this HTML5 web application development.

    ReplyDelete