I ma not sure if this is the best solution, i would
have an alternative image and swap it.
hope the snippet below helps
<div id="clickableIcon"
style="display:block">
<span
wicket:id="returnDatePicker"></span> ( Date
Picker )
</div>
<div id="nonClickableIcon"
style="display:none">
<span>
<img alt=""
src="" style="cursor: none; border:
none;" >
</span>
</div>
<input wicket:id="myRadio" id="oneway_myRadio" type="radio"
/> Radio
Regards
Dipu
----- Original Message -----
From: "Nili Adoram" <[EMAIL PROTECTED]>
Sent: Tuesday, August 15, 2006 12:27
PM
Subject: [Wicket-user] how to disable trigger
button of DatePicker
> 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
------------------------------------------------------------------------- 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