이것이 가능한지 확실하지 않습니다. '제출'버튼을 클릭하면이 작업을 수행 할 수있는 것처럼 보입니다.Wicket - Progress/Multiple Label Updates
private Button getButton(String id)
{
return new AjaxButton(id)
{
private static final long serialVersionUID = 1L;
{
setEnabled(true);
}
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form)
{
debug = "Beginning a process....";
target.addComponent(debugLabel);
//Perform the first process
debug = "Beginning second process....";
target.addComponent(debugLabel);
//Perform the second process
debug = "Finishing....";
target.addComponent(debugLabel);
//Perform the third process
debug = "Done.";
target.addComponent(debugLabel);
}
@Override
protected void onError(AjaxRequestTarget target, Form form)
{
//NO-OP
}
};
}
}
여러 개의 실시간 업데이트를 사용할 수 없다면 어떻게 할 수 있습니까? 하단에 상태 라벨이 표시되어 업데이트가 진행되는 과정을 알려줍니다.
죄송합니다. 나를 잃어 버렸습니다. 코드에 간단한 예제를 제공해 주시겠습니까? –
나는 집에있을 때 (몇 시간 내에) 내가 제공 할 것이다. 어떤 개찰판 버전을 사용합니까? –
그것에 대해 확실하지 않습니다. Eclipse에서 내 라이브러리 중 하나 인 wicket-1.4.17.jar를 참조합니다. –