Wicket
  1. Wicket
  2. WICKET-5329

"Required" flag initialized too early in PropertyValidator

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.10.0
    • Fix Version/s: 6.11.0, 7.0.0-M1
    • Component/s: wicket-bean-validation
    • Labels:
      None
    • Environment:
      Windows 2008 Server, JDK 1.7_u11 64bit, Glassfish 3.1.2.2

      Description

      Method PropertyValidator#setComponentRequiredFlag() called inside #bind() implementation causes ISE exception ("Could not resolve Property from component...") in #getProperty() in case, when component wasn't added to page hierarchy yet:

      Form<Person> form = new Form<>("form", new CompoundPropertyModel(person));
      TextField<String> requiredField = new TextField<>("firstName");
      requiredField.add(new PropertyValidator()); // ISE !
      form.add(requiredField);
      add(form);

      1. fix-WICKET-5329.patch
        2 kB
        Alexander Morozov

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        7d 4h 37m 1 Martin Grigorov 02/Sep/13 11:00
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Fix Version/s 6.11.0 [ 12324874 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Assignee Igor Vaynberg [ ivaynberg ] Martin Grigorov [ mgrigorov ]
        Alexander Morozov made changes -
        Field Original Value New Value
        Attachment fix-WICKET-5329.patch [ 12599872 ]
        Hide
        Alexander Morozov added a comment -

        Please, review and apply patch.

        Show
        Alexander Morozov added a comment - Please, review and apply patch.
        Alexander Morozov created issue -

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Alexander Morozov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development