Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Daniel Korbel
    @masterdany88
    import com.github.nalukit.nalu.client.context.IsContext;
    Daniel Korbel
    @masterdany88
    I change and it works greate :D
    I am getting 2021-09-09 13:54:03.704000000
    but getApplicationVersion returns: APPLCIATIOPN-VERSION-NOT-AVAILABLE
    how to set up version
    ?
    Frank Hossfeld
    @FrankHossfeld
    answered in the Nalu room
    Colin Alworth
    @niloc132
    This message was deleted
    zhivko
    @zhivko
    Hey guys I am trying to include collabora in my gwt application - and I think I am experiencing SOP (Same Origin Policy) problems, since collabora that is loaded in iframe wont open...
    Any idea how I can get around this problem?
    image.png
    It looks like:
    Frank Hossfeld
    @FrankHossfeld
    It looks like your parent app tries to set focus on a TextArea inside the iFrame.
    raovikas
    @raovikas
    Hi Guys , I have to send some object from one view to another view so I am using EventBus for it in GWT MVP(Place/Activity) application . But if I refresh the page it lost its UI state , I want that if user refresh the browser UI state should not lost . How I can achieve it into GWT . @niloc132 @FrankHossfeld @vegegoku @tbroyer can anyone guide on it ?
    Thomas Broyer
    @tbroyer
    Depends what kind of "UI state" you're talking about. You could add it to your place (ah, if only PlaceController had a replace in addition to goTo…), or save it in sessionStorage and restore it on activity start.
    raovikas
    @raovikas
    I have Form , to fill the fields with values , I getting object from another View using EventBus but if I refresh the page in that case I do not have that object and form fields become empty on page refresh
    raovikas
    @raovikas
    @tbroyer PlaceController do not have replace
    Frank Hossfeld
    @FrankHossfeld
    Yep, that mentioned Thomas. And as Thomas wrote , the only way to fulfill your request is using a sessionStorage. You can use a Singleton to store your form data inside you GWT application, but keep in mind, doing a reload on place 2 will destory your stored data and you need to go back to the first place and the user needs to enter the data again!
    Frank Hossfeld
    @FrankHossfeld
    Ok, just see, that you want to handle a reload. Then you need any kind of sessiuonStorage. Please ignore my comment using a singleton.
    raovikas
    @raovikas
    ok thanks
    zhivko
    @zhivko
    Do you think gwt blocks access and execution of JS that is loaded part of iframe?
    How can I enable cross site access?
    Frank Wynants
    @FrankW76

    Hi all.

    Using GWT3 compatible stuff (JsInterop / elemental2).

    I want to intercept calls to console.log in my own code. So I can capture all the strings written to the console in my own code.

    On StackOverflow I can find solutions for JavaScript like for example : https://stackoverflow.com/questions/11403107/capturing-javascript-console-log

    Can I achieve this in GWT? And how?

    Thanks

    aktoak
    @aktoak
    i am trying to index a set<String> from an Entity using Objectify in GWT
    but i am getting this error when i try to project the set value
    image.png
    any idea what i'm doing wrong?
    Thomas Broyer
    @tbroyer
    @zhivko GWT does not block anything, your browser likely is. The error in the console is about autofocusing a textarea in the iframe, not sure that would break the whole "app" though, so there might be something else (and it's likely coming from the embedded app itself so you couldn't do anything about it). You might try to use sandbox on your iframe (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-sandbox) where you'd need at least allow-scripts, possibly more.
    1 reply
    Frank Hossfeld
    @FrankHossfeld
    Do you think gwt blocks access and execution of JS that is loaded part of iframe?
    It’s not GWT that is blocking, it is the browser.
    Thomas Broyer
    @tbroyer
    @FrankW76 It's possible with JsInterop. AFAICT, you'd have to declare a @JsFunction interface whose method has the appropriate signature to correctly receive the arguments (and/or you could use Js.arguments() to get the arguments, without declaring them formally in the method signature), and then declare a static @JsProperty for console.log so you can retrieve the original function if needed, and replace it with your own (as an instance of that @JsFunction interface)
    Ahmad K. Bawaneh
    @vegegoku
    I always try to avoid sharing transient data between views and make sure that the url has enough information to reconstruct my views, specialy when I want to share urls between different users or different browsers/sessions ..having the data stored in the session will also fail if you give the url to another user or use a different browser ..etc
    if that transient data can fit in the URL then I would put it there..or maybe an ID that help me fetch the data in the other view, and might use the session storage as simple caching strategy ..
    Thomas Broyer
    @tbroyer
    This all depends what kind of "UI state" you want/have to store, and whether it can be shared or not. E.g. the expanded/collapsed state of a tree probably doesn't need to be shared, and yet you might want it to survive page reloads. Same for form contents (possibly stored in local storage to survive longer than a refresh; I believe that's what GitHub does when you're writing a comment). But if there's a reason to "share it", or "bookmark it", then yes by all means put it in the URL.
    Dmitrii Tikhomirov
    @treblereel
    To Whom It May Concern :) new release of xml jre/gwt/j2cl compatible mapper/marshaller https://github.com/treblereel/mapper-xml/releases/tag/mapper-parent-0.4
    italokrenak
    @italokrenak
    Hi Everyone!! Guys you could please help me. I am trying to use lombok but when I try to compile I receive an error, the build can not identify the code generated by lombok. I am using maven and I am new in GWT. Do you what is going on? Thank you!!!
    Colin Alworth
    @niloc132
    gwt can't use lombok out of the box - lombok generates new bytecode, while gwt reads the sources from your project instead of bytecode
    italokrenak
    @italokrenak
    My app is using the GWT 2.8.2 version
    Colin Alworth
    @niloc132
    that said, lombok has a jdt backend, and gwt uses jdt, so it is possible to load up lombok into gwt and ask it to run as gwt is working
    you must have some configuration like that in your gwt-maven-plugin setup for lombok to work in gwt
    italokrenak
    @italokrenak
    Hum ok. I will take a look on that.
    Thank you.
    Colin Alworth
    @niloc132
    if you inherited this project with lombok already added, it likely either has this, or didnt build before you got started (perhaps was only meant to build in an IDE? stranger things have happened...)
    italokrenak
    @italokrenak
    Yes, I have inherited the project with lombok but they never used in GWT scope I think so.
    It was created 2 years ago
    and have to put on prod
    in an few days
    and I am applying a few enhancements
    Colin Alworth
    @niloc132
    i might suggest leaving lombok out of gwt then if it is going out very soon, and stick to what is known to work
    Daniel Korbel
    @masterdany88
    I use lombok with gwt
    @italokrenak
                <plugin>
                    <groupId>net.ltgt.gwt.maven</groupId>
                    <artifactId>gwt-maven-plugin</artifactId>
                    <version>${gwt-maven-plugin.version}</version>
                    <inherited>false</inherited>
                    <extensions>true</extensions>
                    <configuration>
                        <failOnError>true</failOnError>
                        <sourceLevel>1.8</sourceLevel>
                        <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
                        <moduleName>com.app</moduleName>
                        <moduleShortName>app</moduleShortName>
                        <jvmArgs>
                            <arg>
                                -javaagent:${settings.localRepository}/org/projectlombok/lombok/${lombok.version}/lombok-${lombok.version}.jar=ECJ
                            </arg>
                            <arg>-Xms1024m</arg>
                            <arg>-Xmx4096m</arg>
                        </jvmArgs>
                        <codeserverArgs>
                            <arg>-src</arg>
                            <arg>${project.parent.basedir}/shared/src/main/java</arg>
                        </codeserverArgs>
                    </configuration>
                </plugin>