GWT Material Design Addins

412 views
Skip to first unread message

Velusamy Velu

unread,
May 11, 2016, 12:07:09 PM5/11/16
to GWT Users
I followed these steps to use the MaterialWindow addin from the gwt-material-addins-1.5.0.jar in an application.
  1. Downloaded gwt-material-addins-1.5.0.jar and added to application's build path in Eclipse.
  2. Added the line <inherits name="gwt.material.design.addins.GwtMaterialAddins"/> in the ..gwt.xml
  3. Added the line xmlns:ma="urn:import:gwt.material.design.addins.client" in the UiBinder.
  4. Then started adding the line <ma:window.MaterialWindow ui:field="window" width="50%" title="Documents"> in the UiBinder 
But MaterialWindow is not visible to the UiBinder.  Any idea what could be wrong?

Paul Stockley

unread,
May 11, 2016, 12:27:00 PM5/11/16
to GWT Users

Thomas Broyer

unread,
May 12, 2016, 4:56:12 AM5/12/16
to GWT Users


On Wednesday, May 11, 2016 at 6:07:09 PM UTC+2, Velusamy Velu wrote:
Then started adding the line <ma:window.MaterialWindow ui:field="window" width="50%" title="Documents"> in the UiBinder 


I don't think you can use "window.MaterialWindow" in UiBinder; you'd have to add a namespace for the "window" subpackage and then use <maw:MaterialWindow>. 

Jaroslav Záruba

unread,
Jun 19, 2016, 5:04:08 AM6/19/16
to GWT Users
Any progress?
I am dealing with the same issue...

<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
 
xmlns:m="urn:import:gwt.material.design.client.ui"
 
xmlns:ma="urn:import:gwt.material.design.addins.client.autocomplete">
  ...
 
<ma:MaterialAutoComplete placeholder="Contacts" ui:field="autocomplete" />
  ...
</ui:UiBinder>

No cigar. :(

Dne středa 11. května 2016 18:07:09 UTC+2 Velusamy Velu napsal(a):

Jaroslav Záruba

unread,
Jun 19, 2016, 5:40:51 AM6/19/16
to GWT Users
Reading your message again I believe I misunderstood your issue. I got nothing rendered, you are referring to invalid UiBinder XML.

Dne středa 11. května 2016 18:07:09 UTC+2 Velusamy Velu napsal(a):
I followed these steps to use the MaterialWindow addin from the gwt-material-addins-1.5.0.jar in an application.

Velusamy Velu

unread,
Jun 19, 2016, 6:39:47 PM6/19/16
to GWT Users
Thank you, your response triggered me to revisit this issue. I made two changes to my code and tested successfully.
  1. Upgraded to gwt-material-1.5.1.jar 
  2. Changed the name space to
    xmlns:ma="urn:import:gwt.material.design.addins.client.window"
    and declared the window as--> <ma:MaterialWindow ui:field="window" ...
It works now. If I follow what's suggested in the documentation (http://gwtmaterialdesign.github.io/gwt-material-demo/#window) it still fails.

I hope it helps.

Stefan Falk

unread,
Jun 20, 2016, 2:10:01 PM6/20/16
to GWT Users
I'd recommend posting such issues on https://github.com/GwtMaterialDesign

You can also visit those guys on https://gitter.im/GwtMaterialDesign/gwt-material

It's quite active in there so give it a try :)

Gilberto

unread,
Jun 21, 2016, 1:38:32 PM6/21/16
to GWT Users
By the way Thomas you can use subpackages after the namespace declaration in UIBinder (GWT Material uses all the time):


xmlns:ma="urn:import:gwt.material.design.addins.client"

<ma:window.MaterialWindow ui:field="window" ...
<ma:camera.MaterialCameraCapture ui:field="camera" ...
<ma:autocomplete.MaterialAutoComplete ui:field="autocomplete" ...

And so on.

The problem is think was related to an old package that used the namespace gwt.material.design.addins.client.ui instead of the gwt.material.design.addins.client. This is fixed on 1.5.1.
Reply all
Reply to author
Forward
0 new messages