Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Colin Alworth
    @niloc132
    if you are using that, or if you offer to start buying it, you should confirm with them their own plans to get ready for gwt3/j2cl
    Frank Hossfeld
    @FrankHossfeld
    @niloc132 not sure, if it was already discussed. I read that Chrome will drop support for the user agent string in Chrome.
    Colin Alworth
    @niloc132
    my hunch is that the plans for unification will get pushed back or weakened from what is in here - sooo many apps out there use something of this form, and killing it off in less than a year seems absurd to me

    deprecation and freezing seems reasonable and safe from GWT's perspective:

    For the freezing planned for M83, the compatibility risk is low. Existing UA sniffing code will continue to work as expected. It is only future UA sniffing code that will need to change and use the UA client hints instead.

    oh hmm, maybe this is already the plan. re-reading the doc from the top, in Summary:

    We want to freeze and unify (but not remove) the User Agent string in HTTP requests as well as in navigator.userAgent

    Marcin Szałomski
    @baldram

    @vegegoku

    GWT 3.0 is like GWT 2.X but it is modular and [...] compiler is being replaced with J2CL and [...]

    Ok, so now I'm a bit lost. Some time ago @niloc132 said that: the "old" GWT compiler will still be there. The new GWT will live on in the new org.gwtproject modules and can run under either GWT2 compiler (classic GWT) and with J2CL. But now I'm not sure whether the official compiler for GWT3 will be J2CL or it will be only an option?

    Colin Alworth
    @niloc132
    org.gwtproject packages do not mean "this is gwt 3"
    the intention is that anything under org.gwtproject will work under either compiler
    Dmitrii Tikhomirov
    @treblereel
    @baldram as far as i know, it means, all ported modules must be back compatible with gwt2
    Colin Alworth
    @niloc132
    insofar as there is an actual thing called "gwt 3", it will be j2cl+closure+ecosystem - and the ecosystem may include things that also work under gwt2
    there is a push right now to not have a release or product called "gwt 3" though - and to just have an ecosystem, with tooling, and for some of those (domino, dncomponent seem worth mentioning here) you might conceivably use the tooling for a long time without knowing what "GWT" actually is
    Marcin Szałomski
    @baldram
    Ok, so it means that the goal is to make J2CL the leading compiler, while the "old" one (GWT compiler) will be still maintained?
    Colin Alworth
    @niloc132
    (for myself, my focus has remained on solving technical problems, and keeping everyone pulling in the same direction, i don't have strong opinions on the topics of branding, marketing, making it look cool, etc)
    my company has committed to offering paid support for as long as people want it for gwt2 - i expect that will be for many years, based on how big and old many of these products are
    Marcin Szałomski
    @baldram
    Ok, now it is clear. Thank you for explanation.
    Colin Alworth
    @niloc132
    my general advice is that if you keep using gwt2, that's great, but strongly consider moving to jsinterop/generators, and the org.gwtproject packages as they become available
    Josh B
    @JoshIsOnIt
    @niloc132 I believe you mean PROCESSORS and not generators :)
    Colin Alworth
    @niloc132
    uuuuuh damn you for reminding me after the edit window has closed
    Josh B
    @JoshIsOnIt
    I waited ;)
    zhivko
    @zhivko
    Hi guys! I am using celltree and cannot control "show more" button anyhow - I see from google an aproach is hacky like in: https://stackoverflow.com/questions/14645172/celltree-show-more-programmatically?rq=1
    to duplicate code from CellTreeNodeView and CellTree into your my code base... Anybody has any better idea?
    Frank Wynants
    @FrankW76
    image.png

    Using elemental2.
    How do you work with postMessage ? Or actually how to read in the posted data in the eventhandler ?

    I can post a message with a string :

    DomGlobal.window.postMessage("This is a test", "*"); //TODO fix * with correct targetOrigin

    I can also receive the message. But how do I access the 'This is a test' string ?

    DomGlobal.window.addEventListener("message", evt ->
    {
       Logger.log("hallo " + evt.toString());
    });

    When I set a breakpoint in Chrome. I can see that 'this a test' is available in the object. But how do I access this from GWT ? The evt is of type elemental2.dom.Event, and this does not have a data property or getData method.

    As a sidenote. Is there somewhere a Javadoc website available for elemental2 ?

    Dmitrii Tikhomirov
    @treblereel
    @FrankW76 i think you can try Js.asPropertyMap(evt).get("property_name")
    Frank Wynants
    @FrankW76

    thanks @treblereel

    That does indeed work.

    Dmitrii Tikhomirov
    @treblereel
    or you can create a class with String data and cast evt to it Js.uncheckedCast(evt)
    Ahmad K. Bawaneh
    @vegegoku
    @FrankW76 actually you just need to cast to MessageEvent
    If the class isnt in elemental2 then you can just create one
    Ahmad K. Bawaneh
    @vegegoku
    @FrankW76 i just got back to my laptop and i can confirm that elemental2 already has a MessageEvent class
    and it has all the info you need
     public T data;
      public String lastEventId;
      public String origin;
      public MessagePort[] ports;
      public Window source;
    Frank Wynants
    @FrankW76
    @vegegoku That indeed also does work. So I come back to my sidenote : Is there somewhere a Javadoc website available for elemental2 ?
    Cause than I can easily find classes that exend Event. And I would have found the MessageEvent class
    Ahmad K. Bawaneh
    @vegegoku
    You dont need a documentation for elemental2, elemental2 is the browser API, so the documentation is all in MDN
    Dmitrii Tikhomirov
    @treblereel
    @vegegoku +1, in idea it is very easy to find subclasses of Event
    Ahmad K. Bawaneh
    @vegegoku
    yes and normally all i do is just google MDN ..... so i just did googled MDN postMessage and this was the first result https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
    then in intellij i just did ctrl+n twice typed messageEvent, and it was the first result
    Frank Wynants
    @FrankW76
    I'll do the ctrl+n trick in the future :-)
    Colin Alworth
    @niloc132
    MDN is the javadoc of elemental2, and the whole rest of the browser
    Hristo I Stoyanov
    @hrstoyanov
    My
    Chris Ainsley
    @ainslec
    Wondering how to integrate Electron packaging into my Mavenized projects.
    Colin Alworth
    @niloc132
    it looks like electron assumes that it is built from within npm? or its own command line tool (which may well be native, i.e. you will need to make your maven wiring figure out how to work on each platform you build from...)
    i'm not seeing anything specifically that shows how to do this from maven - my hunch is that you may be best served picking a single platform to work on (whatever you run locally, or whatever you use for CI?), and make some antrun or the like that works on that platform first, inside a profile or something
    example maven app which after you run maven, you run more npm commands to make the electron guts https://github.com/amanganiello90/java-angular-web-app#electron-package-mode-for-frontend
    Dr. Lofi Dewanto
    @lofidewanto_twitter

    @ainslec There is an example of Electron with Vaadin (server-side, not client-side like GWT): https://vaadin.com/blog/desktop-uis-will-stay-alive-thanks-to-web-technologies

    But maybe it could help to build the same for GWT?

    Frank Wynants
    @FrankW76

    Is it possible to read css variables using elemental2 ?

    In Javascript you can do :

    getComputedStyle(document.documentElement).getPropertyValue('--my-variable-name');

    I looked at a getComputedStyle method in DomGlobal.window and DomGlobal.document but could not find it.

    Ahmad K. Bawaneh
    @vegegoku
    yes you can, since you can in JS
    you can use the method from domino to get the computed styleDominoWindow.getComputedStyle(Element)
    Frank Wynants
    @FrankW76
    Thanks