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