Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GWT or Javascript? A Vaadin expert's opinion. b...

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

GWTcon

November 14, 2016
Tweet

More Decks by GWTcon

Other Decks in Technology

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. 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(); } } } });
  3. Conclusion •GWT is NOT dead. •It’s fun to learn some

    JavaScript. •Choose whichever fits you best.