GwtMaterialDesign / gwt-material

A Google Material Design wrapper for GWT
https://gwtmaterialdesign.github.io/gmd-core-demo/
Apache License 2.0
411 stars 124 forks source link

Navbar problem #748

Open rodrigobastosv opened 7 years ago

rodrigobastosv commented 7 years ago

I can't make the MaterialNavBar example work (https://gwtmaterialdesign.github.io/gwt-material-demo/#navbar).

I'm getting the "cannot read property 'displayEffect' of undefined" error while trying to use material navbar.

The code i used is copied from here: https://gwtmaterialdesign.github.io/gwt-material-demo/#navbar

`

` Saw somewhere that: "The navbar is intended to be hidden on FLoat types" but i dont know how to do it
kevzlou7979 commented 7 years ago

You're code is correct. Can you show me your module.gwt.xml on how you import the GMD Modules.

rodrigobastosv commented 7 years ago

Sure

<?xml version="1.0" encoding="UTF-8"?>

Thanks for the reply

kevzlou7979 commented 7 years ago

OK so you need to import

 <inherits name="gwt.material.design.GwtMaterialWithJQuery"/>

instead of 
<inherits name="gwt.material.design.GwtMaterialDesign"/> 

because displayEffect needs JQuery

rodrigobastosv commented 7 years ago

Ok, that's a start.

Now i'm getting [ERROR] Unable to find 'gwt/material/design/GwtMaterialDesignWithJQuery.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

rodrigobastosv commented 7 years ago

After hours i've figured that i was puting <inherits name="gwt.material.design.GwtMaterialDesignWithJQuery"/> instead of <inherits name="gwt.material.design.GwtMaterialWithJQuery"/>

But after changing i got the same error. The error is bellow if helps in anything.

error

Thank you

raphaelbn commented 7 years ago

I'm having the exact same problem mentioned here

rodrigobastosv commented 7 years ago

BTW i'm using Gwt-material in a GWT project, not a GWTP one. Don't know if that's relevant info.

chrishilgemann commented 6 years ago

Any suggestions ? Have the same issues

rodrigobastosv commented 6 years ago

@chrishilgemann turns out that a lot of js files where not loadiing for some reason. What i did was putting all the necessary js code in a file and importing in my app.html file.

That isn't the cleaner solution but it did the work for me

rodrigoborgesdeoliveira commented 5 years ago

@rodrigobastosv do you happen to remember which files you had to manually import?

rodrigobastosv commented 5 years ago

Hi @rodrigoborgesdeoliveira i don't really remember.

What version of GMD are you using? When i updated to GMD 2.1.1 this problem was solved and i took the files away.

Let me know if it works and if not i can't take some time to look for the files here

rodrigoborgesdeoliveira commented 5 years ago

Hmm, that's exactly the version I'm using. But no problem then. I'll see what I can find.

rodrigobastosv commented 5 years ago

Hey @rodrigoborgesdeoliveira i found the file.

Send me an email so i can send to you the file

rodrigoborgesdeoliveira commented 5 years ago

Thank you, @rodrigobastosv. I don't know where to find your e-mail, can you send to borgesrodrigo.oliveira@gmail.com?

rodrigobastosv commented 5 years ago

Sure. I just shared with you

rodrigoborgesdeoliveira commented 5 years ago

Thank you very much!