Hi Sandor,

Which DateTextField are you using? The one from wicket-extensions or
wicketstuff?

In general I’m not sure I follow: since both variations of DateTextField
have a model type Date, any validator will receive a Date.
So can you explain (or perhaps show some code) how exactly you are getting
a string in your validator?

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 21 maart 2025 bij 12:08:31, Sandor Feher (sfe...@bluesystem.hu) schreef:

Hi,

At the moment I try to migrate my 7.x project to 9.20.0 and stumbled on
a problem using DateTextField.

However I pass date pattern to my fields DateTextField tol = new
DateTextField("from", model, "yyyy.MM.dd");

when I validate them they alway get their value back in DateFormat.SHORT
according to my language settings.

Thus all of my validators based on this pattern will fail.

So far I used DateConverter and as I realized it's not necessary anymore
becase I can pass pattern as a parameter.

So please let me know which is the proper way to use this component.

TIA,

Regards, Sandor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to