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

Can not change Model when form has Validation Errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 8.0.0-M6
    • None
    • None
    • None

    Description

      I have a Modal with Form and Submit button (it is used for creating new users).

      Form has several text fields bound to CompoundPropertyModel.

      Everytime I open the Modal, I set the ModelObject as new User();

      It works fine (fields "see" new model if I cancel the window or if I sumbit it without erors).

      If Form has validation errors, even if i set compoundModel.setObject(new User()); fields have old value and validation erros are present.

      I found workaround but I believe it should be possible with Wicket without "workarounds"

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              eximius Kamil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: