Code Monkey home page Code Monkey logo

Comments (9)

BenDol avatar BenDol commented on June 29, 2024

What version of GWT are you using?

from gwt-material-table.

caliny97 avatar caliny97 commented on June 29, 2024

2.8rc2
thanks

On Sep 10, 2016 1:41 AM, "Ben Dol" [email protected] wrote:

What version of GWT are you using?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVFV-MLQasvZQg_6j4cnzXPUdkn9VQZNks5qokMLgaJpZM4J5gSB
.

from gwt-material-table.

JasonB42 avatar JasonB42 commented on June 29, 2024

I have also encountered this problem. It shows up as an infinite table not loading additional records after the initial population, with the console being spammed as above.

The problem comes from InfiniteDataView:213

JQueryExtension.$(tableBody).scrollY(name, (e, scroll) ->  onScrollY(e));

Removing the lamba does not fix the problem, aka:

JQueryExtension.$(tableBody).scrollY(name, new FuncRet2<Event, String>() {
    @Override
    public Object call(Event e, String scroll) {
        return onScrollY(e);
    }
});

However, if you remove the JQueryExtension, it appears to work.

$(tableBody).on("scroll.infdataviewtest", (e) ->  onScrollY(e));

Please let me know if there is anything else I can do to help track down the source of this problem.

Versions:

  • GWT: 2.8.0
  • gwt-material: 2.0-SNAPSHOT
  • gwt-material-table: 1.0-rc1
  • gwt-material-query: 1.0-rc1
  • com.github.gwtmaterialdesign.gwt-material: 2.0-SNAPSHOT

from gwt-material-table.

BenDol avatar BenDol commented on June 29, 2024

Can you provide the exception details?

from gwt-material-table.

JasonB42 avatar JasonB42 commented on June 29, 2024

When you scroll down the infinite data view, the browser spams the console with: "Uncaught TypeError: Cannot read property 'material' of undefined(…)". The problem comes from a reference to "$wnd.gwt.material.design.jquery.client.api.jQuery". I have manually verified that $wnd.gwt is null.

Doing a quick grep, it looks like this is the only reference to $wnd.gwt I can find in the old generated code output. The changes above remove the reference in the generated output. Finally, this does not happen in superDevMode, only after being generated and deployed.

from gwt-material-table.

BenDol avatar BenDol commented on June 29, 2024

Thanks for the thorough investigation, I will look into the issue now.

from gwt-material-table.

BenDol avatar BenDol commented on June 29, 2024

Resolved the issue in the release_1.0 branch, can you confirm that its resolved?

from gwt-material-table.

JasonB42 avatar JasonB42 commented on June 29, 2024

@BenDol Everything look good. Thank you for the quick turnaround!

from gwt-material-table.

BenDol avatar BenDol commented on June 29, 2024

👍

from gwt-material-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.