-
FEATURED COMPONENTS
First time here? Check out the FAQ!
FileUpload component has a bug when deploy to IE, it won't activate the handler when upload the first file. If upload again, it will work.
Sample Code:
zul:
<?xml version="1.0" encoding="UTF-8"?>
<?taglib uri="/WEB-INF/tld/web/core.dsp.tld" prefix="c"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?page cacheable="false"?>
<div align="center">
<zscript>
import com.elite.BBS2.ui.*;
</zscript>
<separator spacing="150px"/>
<window id="testwindow" title="test" border="normal" width="30%" mode="overlapped" position="center"
use="TestWindow">
<fileupload id="uploader" native="true" onUpload="testwindow.onFileUpload(event)"/>
</window>
</div>
java:
package com.elite.BBS2.ui;
import org.zkoss.zk.ui.event.UploadEvent;
import org.zkoss.zul.Messagebox;
import org.zkoss.zul.Window;
public class TestWindow extends Window {
public void onFileUpload(UploadEvent evt) throws Exception
{
Messagebox.show("get");
}
}
Hi maxyu,
this is a bug in ZK 3.5.1:
http://sourceforge.net/tracker/index.php?func=detail&aid=2224964&group_id=152762&atid=785191
Asked: 2008-11-05 02:34:03 +0800
Seen: 143 times
Last updated: Nov 05 '08