Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    dac2k9
    @dac2k9_twitter
    I found you have to run without assertions (-ea) to make those tests work.
    raovikas
    @raovikas
    @niloc132 @lofidewanto_twitter @vegegoku anyone know how we can integrate GWT with Spring boot rest services , I think using restyGWT its possible . can anyone confirm it ? Is there any other better way also ?
    Manfred Tremmel
    @ManfredTremmel_gitlab
    Hi @raovikas I've used in different projects errai JAX-RS, restyGWT and GWTP-RestDispatch to communicate with REST services. Personally I prefer GWTP-RestDispatch in combination with dispatch-rest-delegates, you can take a look at my gwt-bean-validators-example project which uses Spring-Boot on server side and GWT/GWTP on client side. A little explanation how REST communication works in the project, you can find in the wiki of the project
    Frank Hossfeld
    @FrankHossfeld
    @raovikas you can use domino-Rest with Spring Boot REST Services. Works fine.
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    @raovikas you can use Domino REST here is an example with Spring Boot https://github.com/gwtboot/domino-rest-enum-date
    Or you can use RestyGWT here is an example with Spring Boot https://github.com/gwtboot/restygwt-enum-date
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    Or for simple thing you could also just use Fetch API from WebAPIs MDN https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API ... Using Elemental2 is quite easy...
    Or also for simple thing you can use XMLHttpRequest https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest also using Elemental2
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    All work with Spring Boot REST APIs...
    Damn so many possibilities ... Not beginners friendly ... πŸ€”
    raovikas
    @raovikas
    @ManfredTremmel_gitlab @FrankHossfeld @lofidewanto_twitter thank you for your response , I will check and try different ways which you have mention here
    @Captain67777
    @Captain67777
    I am still struggling on my DEV environment to get GXT 2.2.4 work together with GWT 2.4.0. Since GXT2 does not support GWT UI Binder I am also using gwt-customuibinder 1.1.3 to glue them together.
    My code won't compile, giving error 'No class matching "west" in urn:import:com.extjs.gxt.ui.client.widget Element <gxt:west collapsible='true' margins='0,10,0,0' size='321' split='true'> (:7)' .
    See code excerpt below.. Anyone who can help me solve this issue? I can send you my ' playground' project if you want me to.. help would be highly appreciated!
    image.png
    Frank Hossfeld
    @FrankHossfeld
    @Captain67777 I am not familiar with UiBinder, but that sounds like you are missing a west area in your BoderLayoutContainer (not sure if thss class exists in GXT 2? It’s to long ago)
    zhivko
    @zhivko

    Hi guys - gwt bootstrap overrides my custom css. I tried to include my css latest in module.xml like:

        <public path='resource'>
            <include name='*.css' />
            <include name='*.js' />
            <include name='/css/*.css' />
            <include name='/js/*.js' />
        </public>
    
        <stylesheet src='dis.css'/>

    In my css I need to override bootstrap style like:

    .com-google-gwt-user-cellview-client-CellTable-Style-cellTableSelectedRow
    {
        color: black;
        background-color: white;
    }

    somehow I get white color font on white background...

    Any suggestion how can I solve this?
    zhivko
    @zhivko
    Currently this happens:
    image.png
    philwq
    @philwq
    Hi guys, hopefully someone can help. Trying out IntelliJ IDEA 2020.2.4, installed the GWTP plugin but seeing the following when trying to create a GWT project:

    java.lang.IllegalStateException: Cannot parse object because no supported Content-Type was not specified in response. Content-Type was 'text/html; charset=UTF-8'.
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
    at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244)
    at com.jayway.restassured.internal.mapping.ObjectMapping.deserialize(ObjectMapping.groovy:78)
    at com.jayway.restassured.internal.mapping.ObjectMapping$deserialize.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
    at com.jayway.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:206)
    at com.jayway.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:153)
    at com.arcbees.plugin.idea.wizards.createproject.FetchArchetypes.fetchArchetypes(FetchArchetypes.java:51)
    at com.arcbees.plugin.idea.wizards.createproject.CreateProjectWizard$1.run(CreateProjectWizard.java:113)
    at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
    at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:268)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:834)

    Any help greatly appreciated.
    Colin Alworth
    @niloc132
    @philwq what url is this trying to fetch? is it possible that the arcbee's FetchArchetypes is pointing at a maven repo that no longer exists (or the http version of maven central, which was disabled a year or two ago)?
    @zhivko at a quick glance, a "grayed out" line like the two you have arrows at are inherited, so are overridden by a specific rule that targets the element
    in this case, it looks like bootstrap is styling the text of all input elements
    so instead of .com-google....cellTableSelectedRow, be more specific like .com-google...cellTableSelectedRow input (or possibly both separated by a comma)
    Thomas Broyer
    @tbroyer
    @zhivko This is the common error of CssResource overriding a <link rel=stylesheet>.
    You should use a CssResource and ideally replace the rule rather than overriding it (which depends on the order of stylesheets)
    philwq
    @philwq
    @niloc132 - I'm seeing this on simply trying to create a project using the GWTP plugin in IntelliJ IDEA 2020.2.4 community edition. Will have to dive in deeper, will report back with my findings.
    Colin Alworth
    @niloc132
    gwtp is unmaintained, as is their plugin, at least as far as i know
    philwq
    @philwq
    @tbroyer @niloc132 - thanks both.
    zhivko
    @zhivko
    I took @niloc132 since it includes only css change and made style selector more specific as @niloc132 suggested ... and it works... thanks!
    Colin Alworth
    @niloc132
    note that this will only work as long as you have those styles in PRETTY+STABLE mode (i forget what it is called) - making it part of the cssresource is definitely the cleaner option long term
    zhivko
    @zhivko
    Thank you both for suggestion - I see I have non responsive page that needs to be changed with UiBinder approach
    Colin Alworth
    @niloc132
    non-responsive page? using uibinder only changes how objects are constructed, doesn't affect how code is executed
    raovikas
    @raovikas
    @lofidewanto_twitter I try to run RestyGWT example with Spring Boot https://github.com/gwtboot/restygwt-enum-date . in development mode its working but in production its not working for me . I am sharing screen shot . Am I using correct url address for loading App ?
    image.png
    if I hit url -> 'http://localhost:8080/server/example' it download one file and show one warning . you can see in screen shot
    getting some null pointer exception
    raovikas
    @raovikas
    fyi I have changed the port to 8080
    Dr. Lofi Dewanto
    @lofidewanto_twitter

    @raovikas : I could reproduce the error like you said. In Devmode works fine but not in compiled mode.

    I added "pretty code compiler" to the Maven plugin so we could get a better JavaScript code. There is something in this area:

    var Lcom_google_gwt_user_client_ui_ComplexPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ComplexPanel', 85);
    function $add_0(this$static, w){
      $add(this$static, w, ($clinit_DOM() , this$static.element));
    }

    this$static.element throws NullPointer exception...

    I'll take a look and come back to you...

    Dr. Lofi Dewanto
    @lofidewanto_twitter
    @raovikas I check the other project domino-rest-enum-date, it works for both devmode and production mode... So it has something to do with compilation for RestyGWT...
    Dr. Lofi Dewanto
    @lofidewanto_twitter
    I'll check it out and come back to you...
    Dr. Lofi Dewanto
    @lofidewanto_twitter

    @raovikas I found the problem:
    I have an index.html, one in client / UI project and one in server project. The one on the server has a wrong "div id". Instead of "flowPanel" it has something different... Therefore it gets NullPointer on the server because the div doesn't exists.

    Just make a git pull and you get it working...

    Why did I do the separation? Because if you are working with a complex UI you don't want to start your server module, so you mock everything on your client UI and just do the necessary deployment with your server module...

    OK, hope this helps and thanks for finding the bug πŸ˜€πŸ‘

    raovikas
    @raovikas
    @lofidewanto_twitter thanks for quick response , now its working πŸ˜€
    raovikas
    @raovikas
    @lofidewanto_twitter how you created RestyGWT example with Spring Boot multimodule project , I mean Is their any maven archetypes for it ?
    Frank Hossfeld
    @FrankHossfeld
    @raovikas you can use the Nalu Generator to create a multi module project based on Spring Boot: http://www.mvp4g.org/boot-starter-nalu/BootStarterNalu.html or the gwt-maven-springboot-archetype which works similar to the gwt-maven-architype provided by Thomas Broyer: https://github.com/NaluKit/gwt-maven-springboot-archetype
    All you need to add ist to add RestyGWT to the client.
    BTW I would suggest to use domino-rest, which is more future proofed ...
    raovikas
    @raovikas
    @FrankHossfeld thanks for sharing above information , I will try domino-rest