public UploadForm(String id)
{
super(id);
uploadField = new FileUploadField("file", new Model("/etc/termcap"));
AjaxEventBehavior onChangeEventHandler = new AjaxEventBehavior("onchange") {
private static final long serialVersionUID = 1L;
@Override
public void onEvent(AjaxRequestTarget target)
{
target.appendJavascript("showFileUploaderFieldIndicator()");
}
};
onChangeEventHandler.setThrottleDelay(Duration.valueOf(1000L));
uploadField.add(onChangeEventHandler);
add(uploadField);
add(new Image("indicator", "indicator.gif"));
add(new Label("clientFileName", clientFileName));