Hi all, I have a DatePicker within a form which I want to disable when I press a certain radio, but it seems impossible to disable this trigger button. The DatePicker provides no getter to this button, and it is private and final. Since wicket specifically sets the id of this image I tried adding an AttributeModifier with a name:
endDatePicker.get("trigger").add(new AttributeModifier("name", true, new Model("endDateTrigger"))); Next I called a javascript that looks for this element by name and sets the disabled attribute to true. However, clicking this image continues to open the calendar. How can I prevent the calendar from opening ? Thanks, Nili ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user