Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-390

Unexpected warning message when publish event thru EventQueue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.0
    • 6.0.0
    • General
    • In ZK 5.1 only

      Sep 2, 2011 6:15:40 PM org.zkoss.zk.ui.AbstractComponent service:2538
      WARNING: No page is available in [Desktop z_2dn:/killme/testEventQueue.zul] (but desktop is alive)

      test case (Press the button)

      <window>
      <label id="lbl" value="old"/>
      <button label="new via EventQueue">
      <attribute name="onClick">
      <![CDATA[
      EventQueues.lookup("myqueue", EventQueues.DESKTOP, true).publish(event);
      ]]>
      </attribute>
      </button>
      <zscript>
      <![CDATA[
      import org.zkoss.zk.ui.event.*;
      EventQueue myqueue = EventQueues.lookup("myqueue", EventQueues.DESKTOP, true);
      myqueue.subscribe(new EventListener() {
      public void onEvent(Event event) throws Exception

      { lbl.setValue("new"); }

      });

      ]]></zscript>
      </window>

            Unassigned Unassigned
            henrichen henrichen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: