If you use doAfterCompose to add an onCreate event listener to a component
it wont run. If you add an empty zscript onCreate to the component then the
onCreate registered in the doAfterCompose will run. The attached demo
project has two files addListenerTest1.zul and addListenerTest2.zul which
use the same TestComposer which programmatically adds onCreate. On version
has no zsript onCreate and the other has empty zkscript onCreate.
Nobody/Anonymous
General
3.6.1
Public
|
Date: 2009-06-22 06:25 The UiEngineImpl post onCreate event one by one if there was onCreate |
|
Date: 2009-06-22 01:26 Please take a look at the Lifecycle of Composer - |
| Filename | Description | Download |
|---|---|---|
| zktodo2.zip | addListenerTest1.zul addListenerTest2.zul | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-06-22 01:26 | jumperchen |
| resolution_id | None | 2009-06-22 01:26 | jumperchen |
| close_date | - | 2009-06-22 01:26 | jumperchen |
| File Added | 331416: zktodo2.zip | 2009-06-18 08:45 | simon_massey |