Revision history [back]

click to hide/show revision 1
initial version

answered 2009-04-15 11:05:15 +0800

hideokidd gravatar image hideokidd

hi,

The error seems occurred from

else if (media != null)
{
    Messagebox.show("Not an image: " + media, "Error", Messagebox.OK, Messagebox.ERROR);
}

and that's because you disable event processing threads

from the page, http://docs.zkoss.org/wiki/Performancetip#UsetheServletThreadtoProcess_Events There are two options to solve this 1.Remove following setting from zk.xml(this will enable event processing threads)

<system-config>
    <disable-event-thread/>
</system-config>

2.Overwrite the messagebox (following is just an example from the page)

Messagebox.show("Delete?", "Prompt", Messagebox.YES|Messagebox.NO,
     Messagebox.QUESTION,
     new EventListener() {
         public void onEvent(Event evt) {
             switch (((Integer)evt.getData()).intValue()) {
             case Messagebox.YES: doYes(); break; //the Yes button is pressed
             case Messagebox.NO: doNo(); break; //the No button is pressed
             }
         }
     }
 );
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More