Pro Yearly is on sale from $80 to $50! »

GWT or Javascript? A Vaadin expert's opinion. by Haijian Wang

3e8bbe56bf459ee2b5f4ca79fd63efde?s=47 GWTcon
November 14, 2016

GWT or Javascript? A Vaadin expert's opinion. by Haijian Wang

GWT or Javascript? A Vaadin expert's opinion. by Haijian Wang
#GWTcon2016 - Firenze 14-15th November 2016

3e8bbe56bf459ee2b5f4ca79fd63efde?s=128

GWTcon

November 14, 2016
Tweet

Transcript

  1. G W T O R J A V A S

    C R I P T ? A V A A D I N E X P E R T ’ S O P I N I O N H A I J I A N W A N G
  2. Is GWT Dying? Scary Questions First Should I use JavaScript

    Instead?
  3. Scary Questions First Too Scary to answer

  4. Let’s limit the scope to Vaadin application Too Scary to

    answer
  5. What is Vaadin? A Java web framework for building Web

    applications.
  6. A What is Vaadin? Server Side Java web framework for

    building Web applications.
  7. How does Vaadin application look like?

  8. Vaadin Application Architecture

  9. GWT or JavaScript? Custom Widget: two approaches

  10. •Language Preference •Community Support •Development Speed •Requirement Considerations

  11. Language Preference JavaScript sucks?https://www.youtube.com/watch?v=xE8tL8NdHaY Or not.

  12. Community Support

  13. Development Speed •Widgetset Compilation •Debugging

  14. Requirement Case studies •Workflow canvas in SVG •Disable backspace navigation

  15. Workflow Canvas in SVG

  16. Workflow Canvas in SVG raphael4gwt ->Snap.svg -> Raphaël?

  17. Disable backspace navigation Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent

    event) { if(event.getNativeEvent().getKeyCode() == KeyCodes.KEY_BACKSPACE) { if(!WidgetUtil.isFocusedElementEditable()) { event.getNativeEvent().stopPropagation(); event.getNativeEvent().preventDefault(); } } } });
  18. Disable backspace navigation It’s now disabled by default since Chrome

    52.
  19. Conclusion •GWT is NOT dead. •It’s fun to learn some

    JavaScript. •Choose whichever fits you best.
  20. Q U E S T I O N S ?

  21. G R A Z I E