Announcement Announcement Module
Collapse
No announcement yet.
CustomDatePickerBinder alternatives Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    It doesn't seem that hard, I can make it this weekend and add it as a JIRA issue I think

    Comment


    • #3
      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

      Comment


      • #4
        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?

        Comment


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

          Ollie

          Comment


          • #6
            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?

            Comment


            • #7
              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

              Comment


              • #8
                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.

                Comment


                • #9
                  Patches created, see
                  http://opensource2.atlassian.com/pro...browse/RCP-204

                  Comment

                  Working...
                  X