Re: S2: Disable datetimepicker

2007-04-24 Thread Musachy Barroso
ely by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "Musachy Barroso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, April 24, 2007 11:01 AM Subject: Re: S2: Disable datetim

Re: S2: Disable datetimepicker

2007-04-24 Thread Musachy Barroso
In the beginning I think that was the idea(I wasn't around at that time so don't take my word for it :) ), as of 2.1 we are moving all these "ajax" tags to a "dojo" plugin, so they are dojo specific. If there was another implementation, it would be better to have a common interface, but just worki

Re: S2: Disable datetimepicker

2007-04-24 Thread Martin Gainty
- From: "Musachy Barroso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, April 24, 2007 11:01 AM Subject: Re: S2: Disable datetimepicker Assign an id to your datepicker, lets say "dp1" and do this: dojo.widget.byId("dp1").di

Re: S2: Disable datetimepicker

2007-04-24 Thread Lance
I'm not a struts2 user (unfortunately) but this seems bad to me. From what I see of the s2 tags, they abstract you from the fact that dojo is being used under the hood. Should struts2 have it's own core js that proxies through to the dojo implementation? Scott Nesbitt wrote: Works great! Tha

Re: S2: Disable datetimepicker

2007-04-24 Thread Scott Nesbitt
Works great! Thanks, Musachy. Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Assign an id to your datepicker, lets say "dp1" and > do this: > > dojo.widget.byId("dp1").disable(); > > to enable it: > > dojo.widget.byId("dp1").enable(); > > musachy > > On 4/24/07, Scott Nesbitt <[EM

Re: S2: Disable datetimepicker

2007-04-24 Thread Musachy Barroso
Assign an id to your datepicker, lets say "dp1" and do this: dojo.widget.byId("dp1").disable(); to enable it: dojo.widget.byId("dp1").enable(); musachy On 4/24/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: I would like to enable/disable the datetimepicker when the user selects certain radio

S2: Disable datetimepicker

2007-04-24 Thread Scott Nesbitt
I would like to enable/disable the datetimepicker when the user selects certain radio buttons. Here is my tag: I can disable (and clear) the textbox next to the calendar icon like this: var ud = getField('mainForm', 'untildate'); ud.value = ""; ud.disabled = true; But this does not