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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.2
    • Fix Version/s: 6.5.3
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None

      Description

      <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>
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: