Hi all,
I try to get a busy indicator next to a checkboxm, but it doesn't work.
I tried to use the standard AjaxIndicatorAppender as shown in
wicket-extensions. Does this class only work with extension-classes
startign with "Indicating.."? Do you have an example how to show an
indicator next to a checkbox?
All the best
Philipp
public class CriticalCheckboxActionPanel extends Panel
{
Index index;
private final AjaxIndicatorAppender indicatorAppender = new
AjaxIndicatorAppender();
public MyCheckboxActionPanel(String id, final IModel model, final
Item item, Index index)
{
...
AjaxCheckBox chb = new AjaxCheckBox("too_critical",new
PropertyModel(to, "too_critical")) {
@Override
protected void onUpdate(AjaxRequestTarget target) {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public String getAjaxIndicatorMarkupId() {
return indicatorAppender.getMarkupId();
}
};
chb.add(indicatorAppender);
add(chb);
}
}
--
Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg
Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: [email protected]
Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]