I've seen this issue reported on the ZK forums, but I haven't seen an answer that will work. Basically, the problem is I have a Button with the "upload" property set to "true". I'm getting the file selection window, but after I select my file, I see a progress popup near the window, and then nothing. I should get an "onUpload" event, but I'm not. Here's a simple code snippet for what I'm doing:
class UploadPanel
{
Button importButton
.
.
.
Panel addButtonPanel ()
{
Panel buttonPanel = new Panel (style: "margin:10px")
Panelchildren btnPanelChildren = new Panelchildren()
btnPanelChildren << (importButton = new Button (label: 'Import...', upload: 'true'))
buttonPanel
}
public void onUpload$importButton(UploadEvent e)
{
Messagebox.show('in OnUpload!') // not getting this
.
.
.
}
}
Has anyone else encountered this, and resolved it somehow? Any help would be appreciated.
I also wonder why the button displays so strangely. It seems to have extra paneling at the top and bottom.
I tried a Button without the "upload" set. I put a "Fileupload.get()" in the onClick of the Button. I'm getting the onClick event and the dialog displays for selecting the file, but after I select it, the dialog updates with the file I selected and its size, and an animated circle displays that doesn't stop unless I hit Cancel. I don't seem to get a valid return from the "Fileupload.get()" either.
Thanks!
TL