You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin A <wm...@gmail.com> on 2011/11/02 10:25:29 UTC
wicket AjaxCheckBox's onUpdate not called
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
Re: wicket AjaxCheckBox's onUpdate not called
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Try to make a quick-start so that others can test and see what´s happening?
Regards,
Ernesto
On Wed, Nov 2, 2011 at 10:30 AM, Martin A <wm...@gmail.com> wrote:
> 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 <
> reiern70@gmail.com> 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 <wm...@gmail.com> 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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket AjaxCheckBox's onUpdate not called
Posted by Martin A <wm...@gmail.com>.
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 <
reiern70@gmail.com> 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 <wm...@gmail.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: wicket AjaxCheckBox's onUpdate not called
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Just guessing... try getting rid of
@Override
> protected boolean wantOnSelectionChangedNotifications() {
> return true;
> }
Ernesto
On Wed, Nov 2, 2011 at 10:25 AM, Martin A <wm...@gmail.com> 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org