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

AjaxFormComponentUpdatingBehavior - onUpdate - Field Required

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 7.2.0
    • Fix Version/s: None
    • Component/s: wicket
    • Labels:

      Description

      Hello,
      I use AjaxFormComponentUpdatingBehavior("change").
      When a field is required and the field is empty the onUpdate method is not call.
      In AjaxFormComponentUpdatingBehavior :

      if (formComponent.isValid())
      {
      if (getUpdateModel())

      { formComponent.valid(); formComponent.updateModel(); }

      onUpdate(target);
      }
      else

      { formComponent.invalid(); onError(target, null); }

      My model is not updated.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gchiron Guillaume CHIRON
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: