My problem is that I’d like the
textbox fed by the DatePicker to autosubmit
only when the DAY part of the date changes. Since the DatePicker
changes the month and year as one navigates the DatePicker’s
pop-up, I cannot rely on submitting on just any change to the textbox.
Rather than modifying the DatePicker component, a simpler solution for my use-case
might be to replace my _javascript_ onChange=”this.form.submit” with onChange=”…some
more complex _javascript_” that submits only if the day portion of the date
differs from the initial value.
But I am new to both _javascript_ and
Wicket; can anyone point me to an example in which a component in a panel does
something like this? Though my
_javascript_ code is likely to be a few lines long, can I put it all in the
attribute definition, or would I have to define a function in the HTML
<head>, placed there using <wicket:head>?
Also, since I am pretty new to _javascript_,
does anyone have a Wicket example in which the _javascript_ references the value
of an input box?
-----Original Message-----
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: Thursday, May 04, 2006 3:09
PM
To:
[email protected]
Subject: Re: [Wicket-user]
auto-submit when done picking date
as eelco is saying. Dig into the _javascript_ of that
datepicker.
See how it works and if you can patch it to only set the date when you close
it.
the _javascript_ is not written by us. We only use it. and intergrated it into
wicket.
johan
On 5/4/06, Frank Silbermann <[EMAIL PROTECTED]>
wrote:
Well, is there a configuration option only to change
the date when a day
is chosen, but not when shifting to a new month?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Eelco
Hillenius
Sent: Thursday, May 04, 2006 12:23 PM
To: [email protected]
Subject: Re: [Wicket-user] auto-submit when done picking date
> What I'd really like is to post back not when the texbox changes, but
> rather, when the datePicker closes. Any suggestions
how? Would I
need to
> associate the datePicker with something other than a <span/>
tag? On
which
> event would I put the "this.form.submit ()" ?
I'm afraid you'll have to dig deeper in the _javascript_ part of the
datepicker for this. If you find something that works, and you have an
idea on how this could be integrated with the component, we'll be
happy to accept a patch.
Eelco
-------------------------------------------------------
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=k&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
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?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user