Hello,

In a Page I have an AjaxCheckBox, as so:



    form.add(new AjaxCheckBox("image1_whole", new
PropertyModel<Boolean>(this, "image1Whole")) {

      private static final long serialVersionUID = 1L;

      @Override
      protected void onUpdate(AjaxRequestTarget target) {
        image1PreviewArea.setVisible(!image1PreviewArea.isVisible());

        target.add(image1PreviewArea);
      }

      @Override
      protected boolean wantOnSelectionChangedNotifications() {
        return true;
      }

    });

The component's onUpdate is never called. What am I missing?

Thanks,
Martin

Reply via email to