GWT ToggleButton Only Shows Text from UiBinder

59 views Asked by At

I am trying to get the ToggleButton to show up. Currently only the text I specified for each button is rendering. Nothing is complaining, and within the UiHandler it sees the ToggleButton's methods fine.

First I just added the button, but then also tried adding an upFace, but still nothing.

    <g:ToggleButton ui:field="myToggleButton" text="Button">
    </g:ToggleButton>

And corresponding UiField and UiHandler

@UiField
ToggleButton myToggleButton;

@UiHandler("myToggleButton")
void onPress(ClickEvent e){
    if(myToggleButton.getValue() == true){
    doSomething();
    }
}
0

There are 0 answers