IDEMPIERE-511 Filename button on Initial Client Setup (maybe other processes) does not work

This commit is contained in:
Carlos Ruiz 2012-12-03 17:40:13 -05:00
parent 7fe92e5722
commit 3041e38b38
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class WFilenameEditor extends WEditor
getComponent().setButtonImage("/images/Open16.png");
getComponent().addEventListener(Events.ON_UPLOAD, this);
getComponent().getButton().setUpload("true,native");
getComponent().getButton().setAttribute("org.zkoss.zul.image.preload", Boolean.TRUE);
}
@Override

View File

@ -250,6 +250,7 @@ public class WAttachment extends Window implements EventListener<Event>
bSave.addEventListener(Events.ON_CLICK, this);
bLoad.setImage("/images/Import24.png");
bLoad.setAttribute("org.zkoss.zul.image.preload", Boolean.TRUE);
bLoad.setTooltiptext(Msg.getMsg(Env.getCtx(), "Load"));
bLoad.setUpload("true");
bLoad.addEventListener(Events.ON_UPLOAD, this);