Hi,
I'm currently using an ajaxselfupdatingtimerbehaviour to update a message
field for when a job is complete with the following code:
final Label status = new Label("uploadstatus", new
AbstractReadOnlyModel()
{
private static final long serialVersionUID =
938943178761943953L;
public Object getObject() {
if (getMySession().isUploading()) {
return getString("uploading");
} else if (getMySession().isUploadComplete()) {
return getString("uploadcomplete");
} else {
return "";
}
}
});
status.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
add(status);
===============================================
What I'm wanting to also have happen is then when the
session.isUploadComplete is true I want to be able to re-enable a button
which got disabled when the process started.
I just can't think what I need to do to my button:
===============================================
final Button cancel = new Button("cancel", new
StringResourceModel("cancelbutton", this, null)) {
private static final long serialVersionUID = 691332069442892669L;
public void onSubmit() {
setReturnPage(pageId, pageType, website);
}
};
cancel.setDefaultFormProcessing(false);
form.add(cancel);
--
View this message in context:
http://www.nabble.com/AjaxSelfUpdatingTimerBahaviour-to-enable-button-when-process-compete-tp17045416p17045416.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]