Hi, you can try this:
public void setEnabled(boolean enabled) { DOM.setElementPropertyBoolean(getElement(), "disabled", !enabled); if (enabled) { this.removeStyleName("disabled"); } else { this.addStyleName("disabled"); } } public boolean isEnabled() { return !DOM.getElementPropertyBoolean(getElement(), "disabled"); } // css .disabled { cursor: default ! important; color: #888 ! important; } Extend DatePicker, add these two methods. The only problem is that you have to check on every event if the DatePicker is enabled or not... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.