The ZUL file code for this will be
and in you View Model class you have to use this code snap..
I have used image tab only for showing a uploading image if you want to upload the image only you do not need to use the image tag in the page.
Note:- I have removed unwanted line of code so may be code will be not compile but this is a way to work with image.You can made changes in code according to your requirements.
The detail method of showInfo()
and in you View Model class you have to use this code snap..
I have used image tab only for showing a uploading image if you want to upload the image only you do not need to use the image tag in the page.
Note:- I have removed unwanted line of code so may be code will be not compile but this is a way to work with image.You can made changes in code according to your requirements.
The detail method of showInfo()
It is really very nice.I was stuck to upload an image but your post helps me to resolve out the issue.
ReplyDeleteThis comment has been removed by the author.
DeleteThanks its just starting of ZK :)
DeleteThank you very much. I am just wondering what tool you are using to write blog post and how you configured SyntaxHighlighter
ReplyDeleteSee if this post will help you for this .http://syntaxhighlighterintegration.blogspot.in/2013/05/how-to-integrate-syntaxhighlighter-in.html
ReplyDeleteThank you . Same question here as in ZK Forum blog.
ReplyDeleteOnly thing i am not able to get " private AImage myImage". The code shows declaration and get and set. But in the onImageUpload, you have not referred this. Then how will bind works ?
See code is updated just see this line of code
DeletemyImage = (AImage) media;
It will bind with your image tag of ZUL
How to create dynamic download link to download file after some time link will be expire.
ReplyDeleteQuestion is not clear to me if you want download link will be expire for some time then there will be plenty of way like you can use sessionid and check that session id if session id valid then download will possible otherwise it will expire the link and send message to use
Deletein which api showInfo method is defined?I am getting error.
ReplyDeleteshowInfo method is customize method but you can use Messagebox("hello");
Deletethanks for reply.My requirement is to upload the image to my application and save it to certain location on the disk or server and this location should be referred in database.I searched on the forum and web,I couldn't find?can you please help me?
ReplyDeleteAlso I am totally new in zk.will you please suggest me good resources to learn zk?
After upload file you can save the file in byte array then you can get database specified path then write this path.
DeleteThanks for your information
DeleteshowInfo method is customize method but you can use Messagebox("hello");
ReplyDeletehello, could you help me, im currently using MVC pattern, and.. i got stuck on this line
ReplyDeleteObject objUploadEvent = ctx.getTriggerEvent();
i dont know how to get this BindContext ctx in mvc,
pls help
Hi Are you looking something this example http://zkframeworkhint.blogspot.in/2013/09/zk-mvc-upload-example.html
Deletefantastic my friend!!! regards!! :)
ReplyDeleteIt was very helpful my friend..!! Thanks..!!
ReplyDeleteGreat and that i have a swell supply: What House Renovations Need Council Approval house reno on a budget
ReplyDelete