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

Improve Javadoc of Ajax behaviors concerning their onXyz() methods

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0-M3, 6.17.0
    • Component/s: wicket
    • Labels:
      None

      Description

      Hi all,
      I struggled around with validation errors on AjaxChangeBehaviors.

      I wasnt able to get my validation error printed out unless I override onError(AjaxRequestTarget) of my Behavior instance to add my feedback panel manually to the AjaxRequestTarget.

      After overriding it, it was very logical to me.
      But I found the onError(...) quite accidentally.

      A short hint or note in javadoc of OnChangeAjaxBehavior or AjaxFormComponentUpdatingBehavior, that is recommended to override onError(...) as well, would be great for other developers, especially to new ones, I think.

      kind regards
      Patrick

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              patrick1701 Patrick Davids
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: