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

Link#setAnchor return Link instead of void

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.2.5
    • 1.3.0-beta1
    • wicket
    • None

    Description

      It would be nice for Link#setAnchor(Component) to return Link instead of void, so you can be super lazy and say things like this:

      add(new AjaxFallbackLink("foo") { onClick(...) {...}}.setAnchor(bar));

      Might be nice to do that for various other methods on Link as well to allow for other wacky chaining possibilities.

      Attachments

        Activity

          People

            Unassigned Unassigned
            spatula Nick Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: