Friday, April 29, 2016

MaterialModal in gwt-material-1.5.0.jar

Hello -

I wanted to move my project to gwt-material-1.5.0 from 1.4.  The move could have been painless but for the MaterialModal.  Changing from static to instance model seems like the right thing to do.  As a precaution I created a simple pilot project with gwt-material-1.5.0.jar and followed the steps as in (!gettingstarted).  This project is not a Maven project so I downloaded the gwt-material-1.5.0.jar file.

It brings up simple button as show above.  The idea is to show a modal when the button is clicked.

The problem is it just doesn't work right.  A gray screen appears without the content, like this.

Here are the snippets of code (I also have attached the Eclipse project file as a zip) -

in the entry point class's job is to show a button defined in an UiBinder called ModalLauncher -

        ModalLauncher launcher = new ModalLauncher();

the module launcher's UI is
<ui:UiBinder xmlns:ui="" xmlns:g=""
<m:MaterialButton text="Show Modal" ui:field="button" margin="15" />

its java counterpart is


void handleClick(ClickEvent event) {
AboutUs aboutUs = new AboutUs();

the AboutUs is
<!DOCTYPE ui:UiBinder SYSTEM "">
<ui:UiBinder xmlns:ui="" xmlns:g=""
<m:MaterialModal type="DEFAULT" inDuration="500" outDuration="500"
ui:field="aboutUsModal" backgroundColor="blue" dismissable="true">
<m:MaterialTitle title="Default Modal" description="Howdy world!" />
<m:MaterialButton text="Close Modal" type="FLAT" />


and its java counterpart is - 
    interface AboutUsUiBinder extends UiBinder<Widget, AboutUs> {

private static AboutUsUiBinder uiBinder = GWT.create(AboutUsUiBinder.class);

MaterialModal aboutUsModal;

public AboutUs() {

void show() {

Any help would be highly appreciated.

Sam Velu

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment