The ajaxcheckbox didn't have it and wasn't working so I decided to put it
and still not working. So it doesn't work in both cases.

Thanks,
Martin

On Wed, Nov 2, 2011 at 11:28 AM, Ernesto Reinaldo Barreiro <
[email protected]> wrote:

> Just guessing... try getting rid of
>
>   @Override
> >      protected boolean wantOnSelectionChangedNotifications() {
> >        return true;
> >      }
>
> Ernesto
>
> On Wed, Nov 2, 2011 at 10:25 AM, Martin A <[email protected]> wrote:
> > 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
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to