Problems with DateComboBox

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Problems with DateComboBox

Postby gaurang.patel » Tue Aug 10, 2010 7:32 am

1.Presently if we select a date from DateComboBox and then manually change any fild like we change the date field to 32 then the automatically the date of next month is displayed, shouldnt it give an error dat date value is not valid?
2.If the user manually types date in the DateComboBox in the wrong format, the combobox just gets cleared, shouldn't be ther any error??
gaurang.patel
 
Posts: 63
Joined: Thu Apr 08, 2010 1:46 am

Re: Problems with DateComboBox

Postby JIDE Support » Tue Aug 10, 2010 8:25 am

1, The behavior was inherited from DateFormat#parse() by default. You could try to define your own DateFormat to parse it to return a null value in your DateConverter.
2, DateComboBox has several behaviors on focus lost, including COMMIT, COMMIT_OR_REVERT, REVERT, PERSIST, COMMIT_OR_RESET. We don't recommend to promt to the end user any dialog on wrong inputing. However, if you want, you could override DateComboBox#setSelectedItem() to check if the value is valid then popup a dialog.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 10 guests

cron