[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Error message in formatted/calendar field: fromDate, toDate  XML
Forum Index -> Development
Author Message
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi,

is it possible to improve the error message when the date range is violated?

Now there is either a popup with a neutral text like "Incorrect date range" (or something like that),
or the field is marked red without the user knowing why.

It would be nice if the valid date range is displayed to the user.

Best regards
Frauke
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi,

something else:

It seems that the validation does not work correctly if, for instance, the fromDate = null and toDate = new Date().
The date range inside the control is grayed correctly but when I select a valid date, the field is still marked red.

Best regards
Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi,

you have to both specify from and to in order to properly set the time range.

The text message is "The date is not in the from/to range that is defined and was reset to its previous value." ...because these messages were checked by some native English speaker I do not really want to change it...

Bringing in the from/to in the message is a good idea...

Regards, Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi,

thats to bad I can not specify a time range with null dates.
We really need ranges like "older that..." or "newer than...".

No way to convince you?

Best regards
Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

This is not an issue of "convincing"! ;-)
I just explained the way the control works.

What's the problem of adding something like...
Code:
 public Date getFromDate()
 {
     if (m_fromDate == null) return new Date(Long.MIN_VALUE);
     else return m_fromDate;
 }
 

...?

Just want to check if there is something "under the cover" which I do not understand yet...

Regards, Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Ok, that will do...

but still I think there is a validation problem:

If I select a date that is outside the date range (by pressing the today button) the error message appears and the field is marked red.
But whatever valid date I select afterwards, the date field remains marked red.

Best regards
Frauke
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team