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
    look inside the .cache.js file, should be one of the very first commands
    custom gwt builds will of course have custom versions, iirc all of google's internal builds always used version 0.0.0
    AndreiF
    @andreififiita
    @niloc132 got it!. It was there. inside the .cache.js file and the i printed the variable inside the frame
    Btw, why does gwt need the frame?
    Is there an explanation in the docs?
    Colin Alworth
    @niloc132
    you don't always need it - but it guards against your own code stomping on some external js
    like if gwt decided to name something $, but you already had jquery on the page
    AndreiF
    @andreififiita
    I mean why does gwt loads all code within that frame by default, and not directly in top window
    Ah ok, so it is good patterns / practice
    Colin Alworth
    @niloc132
    using modern modules would make this easier, but gwt2 at least doesnt assume modern js
    AndreiF
    @andreififiita
    And not for "technical" reasons / constraints
    I see, yes
    Colin Alworth
    @niloc132
    correct, you can build a linker that dumps stuff in the top level window
    there may be other reasons that aren't coming to be right away, probably related to hoisting, other js toolkits monkey patching objects that dont belong to them, etc
    AndreiF
    @andreififiita
    @aallnneess i think you can apply a css property, something like "line-break: anywhere" and/or "white-space: normal". Check out the css docs about those. But first, apply a class (gwt styleName) first to control your items properly (from the design persective i mean)
    @aallnneess also, in css you might use "overflow: hidden" togheter with "text-overflow: ellipsis" to slice the text at the end if that is your desire
    @niloc132 i understand
    aallnneess
    @aallnneess
    @andreififiita yes, it was a ** mistake on myside: white-space: nowrap....
    so, i can try as long as the sun shines today with this code snipped in my css class..... :D
    know it works fine
    thanks @all
    AndreiF
    @andreififiita
    @aallnneess aaa of course... the good ol' inherited nowrap, which in 25K lines of css it is hard to find. Very useful tip: use chrome's dev tools, the tab "Computed" (after "Styles", before "Layout")
    search and check for white-space whenever you find this, and then whn you hove the mouse on top, you will see a small arrow, click on it and it will take you to the class/css selector where that instruction is applied
    Rafat J. Al-Barouki
    @rjeeb
    how can I convert byte[] to Blob?
    Rafat J. Al-Barouki
    @rjeeb
    following does that:
          ArrayBuffer arrayBuffer = new ArrayBuffer(bytes.length);
          Uint8Array buffer = new Uint8Array(arrayBuffer);
          buffer.set(TypedArray.SetArrayUnionType.of(bytes));
          BlobPropertyBag options = BlobPropertyBag.create();
          options.setType("application/octet-stream");
          Blob blob =
              new Blob(
                  new Blob.ConstructorBlobPartsArrayUnionType[] {
                    Blob.ConstructorBlobPartsArrayUnionType.of(buffer)
                  },
                  options);
    Stanislav Spiridonov
    @foal
    Hi, the gwt-safehtml-processor 1.0.0-RC1 o maven central contains a reference to the parent with dev version. https://repo1.maven.org/maven2/org/gwtproject/safehtml/gwt-safehtml-processor/1.0.0-RC1/gwt-safehtml-processor-1.0.0-RC1.pom
    Frank Hossfeld
    @FrankHossfeld
    Thanks for reporting, will take a look ...
    Stanislav Spiridonov
    @foal
    :thumbsup:
    cyberquarks
    @cyberquarks
    @rjeeb I have this JSNI code var blob = new Blob([javaScriptObject], {type: "application/octec-stream"}); where it can work to create a Blob from a Javascript object.
    Just Js.cast it before sending to the JSNI and I think that should work
    Colin Alworth
    @niloc132
    @cyberquarks what is "javaScriptObject" in this? it looks like it is probably a Uint8Array, which assuming you made it the same way (wrapping a byte[] array) would be pretty much exactly what rafat did, which he said worked?
    cyberquarks
    @cyberquarks
    Yeah, I didn't see that, you're right
    Colin Alworth
    @niloc132
    @cyberquarks but was it a uint8array, or something else just cast to JSO?
    cyberquarks
    @cyberquarks
    as far as I remember, it was uint8array
    Colin Alworth
    @niloc132
    ok cool
    so you may not know this, but there is no need to cast to JSO to pass it to JSNI
    any object, js or java, is a valid type to pass to a JSNI method
    Kiiv
    @Kiiv

    @Kiiv The first example Microfrontends with DominoUI is online: https://github.com/gwtboot/microfrontends-example

    "Data exchange" and "method calls" and "messages send and receive" from one to other microfrontends (Order to Support and vice versa) will come later and also a short article to describe the architecture...

    It is a very simple example but I hope you could see the main point of how to implement Microfrontends web app...

    Feedbacks are welcome 🙏

    Thank you so much for this !
    Two simple problem I had to run the example :

    • elemento is still released with SNAPSHOT dependencies... gwt-safehtml is not available on official repo in 1.0-SNAPSHOT version. I had to exclude the artifact to add an explicit dependency in 1.0.0-RC1
    • I usually run an other gwt-maven-plugin so "gwt:generate-module" does not work for me. I had to explicitely call the right plugin with "net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:generate-module net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:devmode"
    AndreiF
    @andreififiita
    Hello again guys. I know that this is not the place to ask this question (it is related to firebase messaging web and PWA / Chrome apps on Android) but i am battling this for months and i could't find any useble leads: does anyone have issues with big delay when messages to android devices (browser apps / PWA, not native apps) ? Or not being albe to set HIGH priority on them? At least some pointers or if someone encoutered this we could talk in private, not to bother everyone else (or comment my post here: https://stackoverflow.com/questions/67178131/firebase-messaging-priority-high-not-working-on-android-chrome-pwa-app-delaye)
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    For info: I had my talk today about Web Browser as a Platform, here is my slides (English): https://bit.ly/DEVKNavigate2021
    Frank Hossfeld
    @FrankHossfeld
    Yeah, I know. Some of my friends where listening … :-)
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    Cool, I hope to get some devs join GWT / J2CL cool things 😉👍
    Frank Hossfeld
    @FrankHossfeld
    Sure … :-)
    Dr. Lofi Dewanto
    @lofidewanto_twitter

    @Kiiv : Thanks for the input...

    As you know, there is still a problem with the "too early" loading Calculator... See the comment on this file: https://github.com/gwtboot/microfrontends-example/blob/master/microfrontends-order/microfrontends-order-client/src/main/java/com/example/order/client/OrderApp.java

    I would like to implement the CustomEvent as @tbroyer told me... but need time for this... With waiting it works I tested... so it is because of "too early"

    Ahmad K. Bawaneh
    @vegegoku
    Jonathan Franchesco Torres Baca
    @jofrantoba
    hi
    someone has worked apache cordova with gwt
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    @vegegoku Ahh thanks a lot you have already RC2... 👍I'll update gwt-boot...
    Dr. Lofi Dewanto
    @lofidewanto_twitter