#306 Date field: incorrect functionality on paste

closed-fixed
UI Swing (244)
5
2007-03-03
2007-02-15
Teo Sarca
No

== Situation ==
For a date field suppose you have the folowing value:

02/15/2007

Now paste some text (from clipboard) in that field. For example, after pasting some text, i have:

02/Specification-Title15/2007

(I suppose the date field is mandatory)
Now press tab, the calendar will popup, select a correct date and press ok.

Here some strange things happen:
* the date is not corrected
* if you are using a new row (not saved), and press undo (or ESC) the field remains
* and so on....

Discussion

  • Teo Sarca

    Teo Sarca - 2007-02-15
    • status: open --> closed-fixed
     
  • Teo Sarca

    Teo Sarca - 2007-02-15

    Logged In: YES
    user_id=1311402
    Originator: YES

    *** Fixed in rev. 1563

     
  • Colin Rooney

    Colin Rooney - 2007-02-16

    Logged In: YES
    user_id=1238223
    Originator: NO

    Good find and a good fix guys.
    I noticed in the new fixed version that if you X out of the calendar instead of ESCaping, then the error value in the field is blanked out ok, but the field remains blue i.e. the mandatory value is entered... but the field is blank! focus has moved on to the next field and you can save the doc without the mandatory date field entered.

    colin

     
  • Colin Rooney

    Colin Rooney - 2007-02-16
    • status: closed-fixed --> open-fixed
     
  • Teo Sarca

    Teo Sarca - 2007-02-16
     
  • Teo Sarca

    Teo Sarca - 2007-02-16

    Logged In: YES
    user_id=1311402
    Originator: YES

    Colin,

    Now, using your scenario, the field will be reverted to the old value.
    I can requestFocus in the focusLost method because in this case the next field will receive focusGained.
    Suppose your next field is a date...

    Can you review the patch ?

    Best regards,
    Teo Sarca

    File Added: VDate.diff.txt

     
  • Colin Rooney

    Colin Rooney - 2007-02-16

    Logged In: YES
    user_id=1238223
    Originator: NO

    yes that works great Teo..

    colin

     
  • Teo Sarca

    Teo Sarca - 2007-02-16

    Logged In: YES
    user_id=1311402
    Originator: YES

    *** Fixed in rev. 1579

     
  • Teo Sarca

    Teo Sarca - 2007-02-16
    • status: open-fixed --> pending-fixed
     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks