Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4024

Provide a Convenience API for usage of Ajax Channels

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC7
    • Fix Version/s: 1.5.1
    • Component/s: wicket
    • Labels:
      None

      Description

      The Usage of Wicket Ajax Channels is currently rarely documented and pretty low-level.
      You have to build the Name of the Channel with a certain Format (name|d for DropChannels, name|s for Stackable Channels).
      I don't know why this is so, but this feature is pretty cool, and I think we should provide a little convenience api for the usage of Channels.

      I attached a patch that shows the idea - its pretty simple, lets just not use a String but an Objects that encapsulates the behavior with a little
      Javadoc, so more people may find this feature.

      WIth the Patch, all works as before, but one could provide an AjaxChannel for its Behavior and must not fiddle with Strings.

      Thanks.

        Activity

        Hide
        splitshade Martin Dilger added a comment -

        Great, thanks!

        Show
        splitshade Martin Dilger added a comment - Great, thanks!
        Hide
        mgrigorov Martin Grigorov added a comment -

        I see how this can be introduced in 1.5.x

        Show
        mgrigorov Martin Grigorov added a comment - I see how this can be introduced in 1.5.x
        Hide
        splitshade Martin Dilger added a comment -

        correct patch

        Show
        splitshade Martin Dilger added a comment - correct patch
        Hide
        splitshade Martin Dilger added a comment -

        oh no! you are right, this is the wrong patch, sorry...
        I´ll add the correct patch this evening, its on my other laptop.

        Show
        splitshade Martin Dilger added a comment - oh no! you are right, this is the wrong patch, sorry... I´ll add the correct patch this evening, its on my other laptop.
        Hide
        mgrigorov Martin Grigorov added a comment -

        Changing APIs cannot be done in 1.5.x anymore.
        I don't like to use Object. It will be better to have AjaxChannel(name, type) or something similar.

        Show
        mgrigorov Martin Grigorov added a comment - Changing APIs cannot be done in 1.5.x anymore. I don't like to use Object. It will be better to have AjaxChannel(name, type) or something similar.
        Hide
        mgrigorov Martin Grigorov added a comment -

        You attached the same patch for both tickets. From the description in this ticket I expect another patch here.

        Show
        mgrigorov Martin Grigorov added a comment - You attached the same patch for both tickets. From the description in this ticket I expect another patch here.
        Hide
        splitshade Martin Dilger added a comment -

        Maybe this should be seen together with WICKET-4023, that I just opened before this one.

        Show
        splitshade Martin Dilger added a comment - Maybe this should be seen together with WICKET-4023 , that I just opened before this one.

          People

          • Assignee:
            mgrigorov Martin Grigorov
            Reporter:
            splitshade Martin Dilger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development