-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I'm trying to use the 'open as a modal dialog' approach to file uploading in a zul placed in a container running under linux and the behaviour is pretty strange. I get a misplaced closable window which contains a label exhorting me to select the desired files but no button or input field at all, and I also get the following error message:
Invalid ID: z_e3_3!iframe. Cause: reserved words not allowed: [arg, page, session, event, spaceOwner, desktop, self]
The fileupload example in the online demo suffices to test this:
<zk> <button label="Upload"> <attribute name="onClick">{ Object media = Fileupload.get(-1); if (media instanceof org.zkoss.util.media.Media[]) { org.zkoss.util.media.Media[] medias = (org.zkoss.util.media.Media [])media; for (int i = 0; i < medias.length; i++) { Image image = new Image(); image.setContent(medias<i >); image.setParent(pics); } } else if (media != null) Messagebox.show("Not an image: "+media, "Error", Messagebox.OK, Messagebox.ERROR); }</attribute> </button> <vbox id="pics" /> </zk>
I'm using zk3.5.2 and ubuntu8.
If anybody can provide any clue as to what is happening (whether I'm doing anything wrong or it's actually a bug) I would be much grateful.
With kind regards
César Varona
It's strange, this error has never be reported.
Because id is generated and manipulated by ZK,
I think it's a bug, please post it to bug tracking, thank you.
In bug tracking, please tell us your environment in detail,
such as container type, and the stack trace of the error.
Asked: 2009-03-02 15:46:13 +0800
Seen: 223 times
Last updated: Mar 05 '09