Hi Bas,

Sorry for the delay..

I use org.apache.wicket.extensions.markup.html.form.DateTextField in my project

Meanwhile I figured out that the problem probaly is not with pattern but the Date field itself.

I created a quickstart for the better undestanding.

https://github.com/sfeher/wicket9DateTextFieldquickstart

Thank you.

2025. 03. 24. 12:54 keltezéssel, Bas Gooren írta:
  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

--
Üdvözlettel/Kind Regards, Fehér Sándor


...Fehér Sándor...            ---    ....Sandor Feher....
 fejlesztési vezetõ           ---     development manager
 Blue System Kft.             ---      Blue System Ltd.
..........................................................................................
http://www.bluesystem.hu : http://www.adatmegorzo.hu : http://www.bluehosting.hu
..........................................................................................

Kérem gondoljon a környezetre mielõtt kinyomtatná ezt az e-mailt vagy bármely 
csatolmányát.
Please consider the environment before printing this e-mail and any associated 
attachments.


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

Reply via email to