{
File f = File.createTempFile("fdi", new File(item.getName()).getName(), new File(System
.getProperty("java.io.tmpdir")));
item.write(f);
chooser.setSelectedFile(f);
chooser.approveSelection();
} catch (Exception e)
{
throw new InputException("Cannot save file", e);
}
} else if (!StringUtils.isNullOrEmpty(inputForm.get(cancelKey)))