0

onUpload attribute doesn't work?!

asked 2014-12-04 08:45:26 +0800

demizon gravatar image demizon
179 1 6

updated 2014-12-04 08:47:18 +0800

Hi guys, i have problem with onUpload event. It worked well in the past, but now suddenly it stopped working in my app. I have following situation, i choose file to be uploaded, file uploads, also upload shows me "100%" but then it stopps and do nothing. But it should call command "getModulsFromExcel". Interresting thing is that it used to work well until now and i dont know why, only thing that came into my mind is that i have upgraded to Java 8. But it souldn't affect it in my opininon...

part of zul file:

<button label="Get moduls from Excel" mold="trendy" upload="true" onUpload="@command('getModulsFromExcel',event=event)"/>

view model command:

@Command
    public void getModulsFromExcel(@BindingParam("event") UploadEvent event)
    {
        System.out.println("function was called");
        Media media = event.getMedia();        
    }

picture of my app, here it stopps and do nothing..

image description

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-01-02 09:38:33 +0800

gediminas gravatar image gediminas
39 3

In our case the issue was actually caused by Spring Security, which (since 3.2.0) adds X-Frame-Options: DENY header by default when using Java config.

link publish delete flag offensive edit
0

answered 2014-12-27 19:09:20 +0800

Darksu gravatar image Darksu
1991 1 4

Hello demizon,

The issue has been previously reported and fixed for zk version 7.0.4 at the following url:

http://tracker.zkoss.org/browse/ZK-2471

Furthermore a workaround has been posted at the following url:

http://zkfiddle.org/sample/3djbtd1/3-upload-problem-ie10

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
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
2 followers

RSS

Stats

Asked: 2014-12-04 08:45:26 +0800

Seen: 28 times

Last updated: Jan 02 '15

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