Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 7.0.0-M1
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      There should be an ajaxified version of the DateTimeField component. The current version is non-trivial to ajaxify, as its processing of the date and time fields hooks into the form input processing.

      1. wicket-1390
        4 kB
        Frank van Lankvelt

        Activity

        Hide
        Sven Meier added a comment -

        javadoc now explains how to use AjaxFormComponentUpdatingBehavior

        Show
        Sven Meier added a comment - javadoc now explains how to use AjaxFormComponentUpdatingBehavior
        Hide
        Marieke Vandamme added a comment -

        I was looking for the AjaxDateTimeField too, so I copied your class, but I have some questions:

        • in the constructor you replace the existing DropDownChoice("amOrPmChoice"), without checking if the dropdownchoice needs to be printed (use12HourFormat).
        • You only handle the onUpdate in the ChangeBehaviour (should be behavior, without the 'u', to be consistent i guess), but what about the onError?

        Can you look into that before it's get added into the wicket classes?
        Thx. Marieke.

        Show
        Marieke Vandamme added a comment - I was looking for the AjaxDateTimeField too, so I copied your class, but I have some questions: in the constructor you replace the existing DropDownChoice("amOrPmChoice"), without checking if the dropdownchoice needs to be printed (use12HourFormat). You only handle the onUpdate in the ChangeBehaviour (should be behavior, without the 'u', to be consistent i guess), but what about the onError? Can you look into that before it's get added into the wicket classes? Thx. Marieke.
        Hide
        Frank van Lankvelt added a comment -

        Simple implementation of an AjaxDateTimeField. It subclasses the existing DateTimeField but implements its own data handling as the convertedInput fields are not (all) available in an Ajax update request.

        Show
        Frank van Lankvelt added a comment - Simple implementation of an AjaxDateTimeField. It subclasses the existing DateTimeField but implements its own data handling as the convertedInput fields are not (all) available in an Ajax update request.

          People

          • Assignee:
            Sven Meier
            Reporter:
            Frank van Lankvelt
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development