You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by VictorD <vd...@iso-ne.com> on 2007/04/02 01:48:20 UTC

Struts 2. Onchange event does not work with datetimepicker

Hi,

I am trying to use onchange event with datetimepicker. Looks like
datetimepicker ignores that event.  Does anybody know, what should I do to
make it works?

Thanks
-- 
View this message in context: http://www.nabble.com/Struts-2.-Onchange-event-does-not-work-with-datetimepicker-tf3503053.html#a9783421
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Struts 2. Onchange event does not work with datetimepicker

Posted by Musachy Barroso <mu...@gmail.com>.
I logged a jira ticket for it, and it will be fixed for 2.0.8:

https://issues.apache.org/struts/browse/WW-1867

as a workaround, instead of using the struts tag, use the html that the tag
generates, and set the onValueChanged attribute, something like:

<div
        dojoType="dropdowndatepicker"    id="test"    value="2006-10-31"
name="dojo.test"    inputName="test"  saveFormat="rfc"
onValueChanged="alert('hey!')"></div>


regards
musachy

On 4/1/07, VictorD <vd...@iso-ne.com> wrote:
>
>
> Hi,
>
> I am trying to use onchange event with datetimepicker. Looks like
> datetimepicker ignores that event.  Does anybody know, what should I do to
> make it works?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Struts-2.-Onchange-event-does-not-work-with-datetimepicker-tf3503053.html#a9783421
> Sent from the Struts - User mailing list archive at Nabble.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

Re: Struts 2. Onchange event does not work with datetimepicker

Posted by Musachy Barroso <mu...@gmail.com>.
good catch!

On 4/2/07, C. Adams <li...@the-adams-family.net> wrote:
>
> because the datetimepicker is a dojo component, you need to treat it a
> little differently.
>
> I use the following:
>
> dojo.event.connect(dojo.widget.byId("myPickerId"), "onValueChanged" ,
> "myFunction");
>
>
> On 4/1/07, VictorD <vd...@iso-ne.com> wrote:
> >
> >
> > Hi,
> >
> > I am trying to use onchange event with datetimepicker. Looks like
> > datetimepicker ignores that event.  Does anybody know, what should I do
> to
> > make it works?
> >
> > Thanks
> > --
> > View this message in context:
> >
> http://www.nabble.com/Struts-2.-Onchange-event-does-not-work-with-datetimepicker-tf3503053.html#a9783421
> > Sent from the Struts - User mailing list archive at Nabble.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

Re: Struts 2. Onchange event does not work with datetimepicker

Posted by "C. Adams" <li...@the-adams-family.net>.
because the datetimepicker is a dojo component, you need to treat it a
little differently.

I use the following:

dojo.event.connect(dojo.widget.byId("myPickerId"), "onValueChanged" ,
"myFunction");


On 4/1/07, VictorD <vd...@iso-ne.com> wrote:
>
>
> Hi,
>
> I am trying to use onchange event with datetimepicker. Looks like
> datetimepicker ignores that event.  Does anybody know, what should I do to
> make it works?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Struts-2.-Onchange-event-does-not-work-with-datetimepicker-tf3503053.html#a9783421
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>