Re: GWT history with push state

2020-10-15 Thread Craig Mitchell
As Tomas said, not directly with History.  It's simple JSNI though:

public static native void updateURL(String newUrl) /*-{
$wnd.history.pushState(newUrl, "", newUrl);
}-*/;

public static native void initialise() /*-{
$wnd.onpopstate = $entry(function(e) {
@com.blah.YourClass::yourMethodThatListensForUrlChange()();
});
}-*/;

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/b0daf82c-3510-4e12-b404-87bf723b024bn%40googlegroups.com.


Re: Why Don’t You Use Java for Programming the Client-Side Web Apps on Web Browser?

2020-10-15 Thread Craig Mitchell
> Why Don’t You Use Java for Programming the Client-Side Web Apps on Web 
Browser?

Because of React.  Companies are investing in creating reusable React 
components.  Reacts virtual DOM makes it very difficult to integrate a 
React component into a GWT app, so you end up just using React, and coding 
in JS / TS.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/d09978b8-6b7b-4e77-84a4-fef5810b4d6an%40googlegroups.com.