You need at least something to access the history api. AFAIK with elemental which is delivered with GWT you could do it ( https://docs.sencha.com/gxt/4.x/javadoc/gwt-elemental-2.8.2/elemental/html/History.html ). But if you want to have something future safe you should use something that uses JsInterop. With elemental2 for example you can access History: https://javadoc.io/static/com.google.elemental2/elemental2-dom/1.0.0/elemental2/dom/History.html . Another solution is to use domino-history: https://github.com/DominoKit/domino-history
This is a very thin wrapper for the history api which is lightweight and works with J2CL (future safe). You can check the domino-ui-demo to see how fine this works. Am So., 4. Okt. 2020 um 07:59 Uhr schrieb jhon tonini <[email protected]>: > Is possible implement push state in GWT without extra libraries ? > > Il giorno sabato 3 ottobre 2020 alle 14:15:04 UTC+2 [email protected] > ha scritto: > >> Have you looked at "nalu"? >> >> https://github.com/NaluKit/nalu >> >> Starting with version 1.1.0 Nalu supports the use of hash less URLs. >> >> Not sure about the Domino-Kit stuff >> >> >> On Sat, Oct 3, 2020 at 7:00 AM jhon tonini <[email protected]> wrote: >> >>> Is possible to use push state in GWT history (Es. /users, /newuser) >>> instead of "#" ? >>> >>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-web-toolkit/a929a4a1-d268-436a-baa6-4dab200a6c40n%40googlegroups.com >>> <https://groups.google.com/d/msgid/google-web-toolkit/a929a4a1-d268-436a-baa6-4dab200a6c40n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit/8b32e5da-7a53-490c-84c4-452e1aa234d1n%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit/8b32e5da-7a53-490c-84c4-452e1aa234d1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CA%2Bh_a81zyrVEwXNHy70x5SyFsMzKv0qsnS-EBORipccF%3D4--3A%40mail.gmail.com.
