struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance <lance.semm...@marketpipe.com>
Subject Re: S2: Disable datetimepicker
Date Tue, 24 Apr 2007 15:49:28 GMT
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!
>
> Thanks, Musachy.
>
> Scott
>
> --- Musachy Barroso <musachy@gmail.com> 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 <scottnesbitt@yahoo.com>
>> wrote:
>>     
>>> I would like to enable/disable the datetimepicker
>>>       
>> when
>>     
>>> the user selects certain radio buttons.  Here is
>>>       
>> my
>>     
>>> tag:
>>>
>>> <s:datetimepicker name="untildate"
>>>                   displayWeeks="4"
>>>                   displayFormat= "MM-dd-yyyy"/>
>>>
>>> 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 disable the calendar icon:
>>>
>>>    ud = getField('mainForm', 'dojo.untildate');
>>>    ud.disabled = true;
>>>
>>> Any ideas on this?  I do not see any other
>>>       
>> applicable
>>     
>>> elements in my form.
>>>
>>> Thanks,
>>>
>>> Scott
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam
>>>       
>> protection around
>>     
>>> http://mail.yahoo.com
>>>
>>>
>>>       
> ---------------------------------------------------------------------
>   
>>> To unsubscribe, e-mail:
>>>       
>> user-unsubscribe@struts.apache.org
>>     
>>> For additional commands, e-mail:
>>>       
>> user-help@struts.apache.org
>>     
>>>       
>> -- 
>> "Hey you! Would you help me to carry the stone?"
>> Pink Floyd
>>
>>     
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message