0

3.5.1 FileUpload bug in IE

asked 2008-11-05 02:34:03 +0800

maxyu gravatar image maxyu
9

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");
}
}

delete flag offensive retag edit

0 Replies

Sort by ยป oldest newest
link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-11-05 02:34:03 +0800

Seen: 143 times

Last updated: Nov 05 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More