That works, tank you very much.

Kadir Sener GUMUS wrote:
> 
> Hi,
> here it is a code piece of ours below. i hope it is usefull for you:
> 
> ......
> *
> 
> private* *static* *final* String *DATETIMEPATTERN* = "dd.MM.yyyy - HH:mm";
> 
> .......
> 
> SimpleDateFormat dateTimeFormatter = (SimpleDateFormat)SimpleDateFormat.*
> getDateTimeInstance*();
> dateTimeFormatter.applyPattern(*DATETIMEPATTERN*);
> 
> DateConverter dateConverter = *new* DateConverter();
> dateConverter.setDateFormat(getSession().getLocale(), dateTimeFormatter);
> 
> form.add(*this*.onlineDateFrom = *new*
> DateTextField("onlineDateRange.from",
> *DATETIMEPATTERN*));
> 
> *this*.datePicker1 = *new* DatePicker("dateFieldPicker1", *this*.
> onlineDateFrom);
> *this*.datePicker1.setDateConverter(dateConverter);
> 
> form.add(datePicker1);
> .............
> 
> Kadir S. GÜMÜS
> 
> 
> 
> On 5/14/07, howzat <[EMAIL PROTECTED]> wrote:
>>
>>
>> I have a DateTextField and I have associated a DatePicker with it as per
>> the
>> javadocs' example usage.
>> When the user selects a date from the DatePicker I would like it to use a
>> format _other than_
>> dd/MM/yyyy to populate the DateTextFiled.
>> I have tried using the setIfDate() setting (the javadoc says it's
>> deprecated
>> but does not say what to use instead) on the DatePickerSettings and the
>> set
>> DateConverter on the DatePicker itself but my DateTextField (which knows
>> and
>> respects my selected format-pattern) always gets a dd/MM/yyyy from the
>> DatePicker.
>> Is there a way around this?
>> The format I am after is yyyy-MM-dd.
>> --
>> View this message in context:
>> http://www.nabble.com/DatePicker-format-instructions-ignored-tf3741104.html#a10508113
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> 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
>> [email protected]
>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DatePicker-format-instructions-ignored-tf3741104.html#a10611933
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to