Messages.get(MZul.UPLOAD_TITLE): title);
params.put("max", new Integer(max == 0 ? 1 : max > 1000 ? 1000: max < -1000 ? -1000 : max));
params.put("native", Boolean.valueOf(alwaysNative));
params.put("maxsize", String.valueOf(maxsize));
final FileuploadDlg dlg = (FileuploadDlg)
exec.createComponents(
_templ, null, params);
try {
dlg.doModal();
} catch (Throwable ex) {
dlg.detach();
if (ex instanceof InterruptedException)
throw (InterruptedException)ex;
throw UiException.Aide.wrap(ex);
}
return dlg.getResult();
}