ImportAppletPanel importPanel;
public ImportPage(PageParameters params) {
super(params);
TextField path = new TextField("path");
importPanel = new ImportAppletPanel("import", settings.getImageDirectoryRoot()+"");
path.add(new AjaxEventBehavior("onchange"){
@Override
protected void onEvent(AjaxRequestTarget target) {
ImportAppletPanel newPanel = new ImportAppletPanel("import", settings.getImageDirectoryRoot() + "/" + getRequest().getParameter("path"));
importPanel.replaceWith(newPanel);
importPanel = newPanel;
target.addComponent(importPanel);
}