eelco,
speaking of wicket-datetime.
is it possible to change the default implementation of
notifyComponentOnDateSelected to return true?
when telling other people (happend twice up to now) about how to use the
datepicker, i always felt the urge to tell them to override this method if
they wanted onchange notification.
still i think this is actually what would be expected to be the default
behavior (the onchange notification), since the value of the associated
component does change.

what do you think?

anyway, sorry if this issue demands more time than it actually might
deserve, due to not enough thinking in the first place...

gerolf


On 7/4/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

> Just noticed that the DatePicker in my Form no longer works.
>
> The wicket form examples page also does not work:
> http://wicketstuff.org/wicket13/forminput/

Yeah, this is fixed in example's trunk (it's actually removed from
that example), but there is no ultimate solution for this. The problem
is described here: http://issues.apache.org/jira/browse/WICKET-694 (or
rather in the thread it references). Still no good idea about a
solution. It's one of the things 2.0's constructor change *did* fix,
but unfortunately, pros like that didn't outweight the cons.

The issue is left open. Hopefully someone get's some fresh inspiration
soon.


> Snippet of code:
>
>   add(new TextField("dateProperty", Date.class).add(new DatePicker()));

As you can read in the above-mentioned thread, you can work around
this by not using an id attribute on dateProperty's markup tag.

> Another question, which is the 'current'/recommended DateTextField
> implementation as there is one in wicket.datetime and one in
> wicket.extentions?

Doesn't matter much. I prefer the one in wicket-datetime, as there's
some magic in there (or rather in the converter is used by default) to
adjust for time zones, but if you need just the basics, they're both
fine.

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to