0

fileupload

asked 2012-09-03 22:28:45 +0800

keving gravatar image keving
21

wuaaa! I need help, im new working with ZK, well i need show the url from a fileupload but, i can because
the fileupload is a botton and it don't have textbox, i try to get the filename and put on in a textbox but I do not find,
tell me pleas how to use fileupload and then how to get each cells. tnks for you help.

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2012-09-04 04:25:35 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

You can use media.getName()
For example,

org.zkoss.util.media.Media media = event.getMedia();
alert(media.getName());

link publish delete flag offensive edit

answered 2012-09-10 22:20:48 +0800

keving gravatar image keving
21

thanks for your help, I had already tried, but i have a problem with the getMedia() method the mistake that show me it is "The method getMedia() is undefined for the type Event"

link publish delete flag offensive edit

answered 2012-09-11 06:59:37 +0800

RichardL gravatar image RichardL
768 4

You need to cast the event to UploadEvent. Try this:

UploadEvent e = (UploadEvent) event;

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: 2012-09-03 22:28:45 +0800

Seen: 111 times

Last updated: Sep 11 '12

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