File f = File.createTempFile("fdi", new File(item.getName()).getName(),
new File(System.getProperty("java.io.tmpdir")));
item.write(f);
dlg.setFile(f.getName());
dlg.setDirectory(f.getParent());
dlg.hide(); //hide it like the peer implementation do
} catch (Exception e)
{
throw new InputException("Cannot save file", e);
}
} else if (!StringUtils.isNullOrEmpty(inputForm.get(cancelKey)))