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

Unexpected warning message when publish event thru EventQueue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0
    • Component/s: General
    • Labels:
    • Environment:

      In ZK 5.1 only

      Description

      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>

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: