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

Clients.showNotification doesn't work when using auto mode include component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.3
    • 6.5.2
    • Components
    • Security Level: Jimmy
    • None
    • None

      <zk>
      	<window >
      		<button label="append" onClick="append()">
      			<attribute name="onClick"><![CDATA[
      				include.setSrc(null);
      				include.setSrc("test2.zul?aa=bb");
      				//include.setSrc("test2.zul"); without param, works fine
      			]]></attribute>
      		</button>
      		<include id="include" src=""/>
      	</window>
      </zk>
      

      test2.zul

      <zk>
      	<zscript><![CDATA[
      		class Controller extends org.zkoss.zk.ui.util.GenericForwardComposer {
      			public void doAfterCompose(Component comp) throws Exception {
      				super.doAfterCompose(comp);
      				Clients.showNotification("doAfterCompose");
      				System.out.println("in");
      			}
      		}
      	]]></zscript>
      	<window apply="Controller" />
      </zk>
      

            vincentjian vincentjian
            jimmyshiau jimmyshiau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: