Results 1 to 9 of 9

Thread: CustomDatePickerBinder alternatives

  1. #1
    Join Date
    May 2005
    Posts
    394

    Default CustomDatePickerBinder alternatives

    In the Pet clinic I found the CustomDatePickerBinder that uses JXDatePicker.

    When I enabled it, it worked, but not good enough I think.

    Have you considered support for nachocalendar?
    http://nachocalendar.sourceforge.net/
    It looks a lot more mature to me.

    Spring RCP could have support for both, in a spring like way under
    org.springframework.richclient.form.binding.swing. *:
    - JXDatePickerDateBinder
    - NachoCalendarDateBinder (the new default if it's any good)
    - TheCurrentDefaultDateBinder (with better name)

  2. #2
    Join Date
    May 2005
    Posts
    394

    Default

    It doesn't seem that hard, I can make it this weekend and add it as a JIRA issue I think

  3. #3
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

    Default

    Go for it. I really dislike the current implementation of the JXDatePicker so I'm happy to commit any alternatives.

    Please provide a unit test with your implementation.

    Thanks,

    Ollie

  4. #4
    Join Date
    May 2005
    Posts
    394

    Default

    ok

    I don't have much of an idea how and what to unit test, is there a similar unit test in spring-RCP I could mimic?

  5. #5
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

    Default

    is there a similar unit test in spring-RCP I could mimic
    ListBinderTests would be a good place to start.

    Ollie

  6. #6
    Join Date
    May 2005
    Posts
    394

    Default

    I am trying to integrate Nacho's DateField, but it seems as if it doesn't fire property change event's if the value changes.

    Is there a workaround for that?

  7. #7
    Join Date
    Aug 2005
    Location
    London (the English one!)
    Posts
    378

    Default Any alternative?

    Any progress? Do we have any alternative?

    If I am right, by using JXDatePicker, the application requires both jndc.jar and jlfgr-1_0.jar... that would be 800KB saved... (unless something else in Spring RC is using jndc and jlfgr...)

    Let us know...
    Ta!

    Benoit

  8. #8
    Join Date
    May 2005
    Posts
    394

    Default

    Actually I have a working solution back home.

    There was a bug with propertychanges in nachocalendar but I 've received a SNAPSHOT of the next version which solved it from the author.

    The only problem is that my testcases fail because I am using a "simpleProperty" binding in my testcases and the binding subframework converts the Date objects to String objects somewhere, making them unequal.

    Tonight or this weekend I 'll have another decent look at it and submit it as a patch in JIRA.

  9. #9
    Join Date
    May 2005
    Posts
    394

Similar Threads

  1. What are you using for online help?
    By dan.baumann in forum Web
    Replies: 3
    Last Post: Mar 8th, 2005, 08:43 PM
  2. OSIV or alternatives
    By thomasalva in forum Data
    Replies: 0
    Last Post: Feb 23rd, 2005, 10:03 AM
  3. Load-balancing business objects (EJB alternatives?)
    By hay7777 in forum Architecture
    Replies: 7
    Last Post: Nov 11th, 2004, 04:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •