iajaxcalldecorator is replaced with
iajaxcalllistener,ajaxcalllistener(dummy implementation)
is what you can extend for your use ,override
ajaxcheckbox#updateAjaxAttributes(attributes)
like below
  @Override
            protected void updateAjaxAttributes(AjaxRequestAttributes
attributes) {
                attributes.getAjaxCallListeners().add(new AjaxCallListener(){
                    @Override
                    public CharSequence getPrecondition(Component component) {
                        return "if (!confirm('" +
getString("confirmDelete") + "'))" + "{ return false; } " ;
                    }
                });
            }

On Fri, Oct 19, 2012 at 8:47 PM, Marco Di Sabatino Di Diodoro
<marco.disabat...@tirasa.net> wrote:
> Hi all,
>
> How can i convert this code into wicket 6.1.
>
>    item.add(new AjaxDecoratedCheckbox("toRemove", new 
> Model<Boolean>(Boolean.FALSE)) {
>
>      @Override
>      protected void onUpdate(final AjaxRequestTarget target) {
>         entityTO.getDerivedAttributes().remove(attributeTO);
>         target.add(attributesContainer);
>         }
>
>      @Override
>       protected IAjaxCallDecorator getAjaxCallDecorator() {
>         return new 
> AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator()) {
>
>      @Override
>      public CharSequence preDecorateScript(final CharSequence script) {
>          return "if (confirm('" + getString("confirmDelete") + "'))" + "{" + 
> script + "} "
>          + "else {this.checked = false;}";
>                 }
>             };
>          }
>  });
>
> I see the migration doc, but i not found a solution.
>
> Thanks
> M
>
>
> --
>
> Dott. Marco Di Sabatino Di Diodoro
> Tel. +39 3939065570
>
> Tirasa S.r.l.
> Viale D'Annunzio 267 - 65127 Pescara
> Tel +39 0859116307 / FAX +39 0859111173
> http://www.tirasa.net
>
> Apache Syncope PPMC Member
> http://people.apache.org/~mdisabatino
>
>
>
>



-- 
regards,

Vineet Semwal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to