I tried like you suggested but it did't work for a textfield ! On Jan 31, 10:10 pm, Qrunk <[email protected]> wrote: > I tried the same on a button(*add *button), its working for me, > > try out this : > > @UiHandler("add") > void onAddClick(ClickEvent event) { > //addRows(); > add.setEnabled(false); > if(!add.isEnabled()){ > System.out.println("Hello"); > add.getElement().getStyle().setBorderColor("red"); > } > > } > > Here add is button added using UiBinder, onClick I make it disabled and > change the border color to red
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
