I use it in tho following way:
new DateTextField("ToDay", new PropertyModel<Date>(ti, "dateTo"),
"HH:mm:ss dd.MM.yyyy");
best regards
Britta Landgraf
Am 14.06.2013 09:20, schrieb [email protected]:
> Do you mean it like this:
> DateTextField txtDatumVon = new DateTextField("txtDatumVon", new
> PatternDateConverter("HH:mm:ss dd.MM.yyyy",true));
> String date = "HH:mm:ss dd.MM.yyyy";
> try {
> txtDatumVon.setModelObject(new SimpleDateFormat("00:00:00
> dd.MM.yyyy").parse(date));
> } catch (ParseException e) {
> e.printStackTrace(); //To change body of catch statement use File |
> Settings | File Templates.
> }
>
> This didn't work :( Did I do something wrong? Can you give me an example?
>
>
> Mit freundlichen Grüßen
> Christoph Manig
> Systems Engineer
>
> T-Systems International GmbH
> Systems Integration - SC Travel, Transport & Logistics
> Hoyerswerdaer Str. 18
> 01099 Dresden
> tel.: +49 (0) 351 / 8152 - 188
> fax: +49 (0) 351 / 8152 - 209
> email: [email protected]
>
> -----Ursprüngliche Nachricht-----
> Von: Francois Meillet [mailto:[email protected]]
> Gesendet: Freitag, 14. Juni 2013 08:41
> An: [email protected]
> Betreff: Re: DatePicker and DateTextField
>
> Set the model object (the date) behind the DateTextField to 00:00:00
> JJ.MM.AAAA.
>
> François Meillet
> Formation Wicket - Développement Wicket
>
>
>
>
>
> Le 14 juin 2013 à 07:37, <[email protected]> a écrit :
>
>> Hello,
>>
>> how is the DatePicker binded tot he DateTextfield? How is the picked date
>> written in the Textfield? Is there a possiblilty to change this?
>>
>> When the DatePicker have the pattern dd.MM.yyyy there is no problem. But I
>> want the full timestamp with this pattern HH:mm:ss dd.MM.yyyy because the
>> User should be able to change the time. I need one DateTextField because the
>> Client and the server are in different timezones. This works fine. The only
>> problem is when I pick a day the DatePicker writes HH:mm:ss 14.06.2013. But
>> it should be 00:00:00 14.06.2013 for default.
>>
>> Is there anyone who could help?
>>
>>
>> Mit freundlichen Grüßen
>> Christoph Manig
>> Systems Engineer
>>
>> T-Systems International GmbH
>> Systems Integration - SC Travel, Transport & Logistics Hoyerswerdaer
>> Str. 18
>> 01099 Dresden
>> tel.: +49 (0) 351 / 8152 - 188
>> fax: +49 (0) 351 / 8152 - 209
>> email: [email protected]
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
--
Dr. Britta Landgraf phone: +49 2461 61 5647
IEK-4 fax: +49 2461 61 5452
email: [email protected]
WWW: www.fz-juelich.de/iek/iek-4/
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]