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

onCreate event not fired if registered in a parent's composer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.0
    • 5.0.7
    • Components

      The onCreate event does not trigger in controller class.
      ZUL:

      <window title="new page title" border="normal" apply="demo.Tooltip">
      <popup id="iconPopup" zclass="none">
      	<image id="imgPreviewIconImage" />
      </popup>
      </window>
      

      Composer class:

      package demo;
      public class Tooltip extends GenericForwardComposer {
      	private Image imgPreviewIconImage;
      
      	@Override
      	public void doAfterCompose(Component comp) throws Exception {
      		super.doAfterCompose(comp);
      	}
      	
      	public void onCreate$iconPopup(Event event) {
      		System.out.println("create");
      		imgPreviewIconImage.setSrc("/img/btn_off_center.PNG");
      	}
      }
      

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 42 minutes
                42m