0

Button onCreate fired after window.onCreate

asked 2014-09-30 14:42:22 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

updated 2014-09-30 15:03:20 +0800

i need a event which all components on my window are create namely all onCreate already finished before i apply some code to it..

i have something like this

<window onCreate=''>
<listbox onCreate='self.renderAll();'>
   <button onCreate=''/>
</listbox>
</window>

the problem i am facing is the onCreate is firing before the button onCreate is fired why is this.. i would like any event which is fire after all onCreate are set..

thanks a lot..

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-05 19:26:19 +0800

Darksu gravatar image Darksu
1991 1 4

Hello javiut,

The way the events are fired is correct.

For more information on how the event's are created please look at the following url:

http://books.zkoss.org/wiki/ZKComponentReference/Events/CreateEvent

If you want to set an explicit event, you could do it via java in the doAfterCompose()

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

Darksu i would like a event which is fired after window onCreate and after all first onAfterRender was fired.. because i am getting the window onCreate and listbox onAfterRender later.... i need to apply a code after the window onCreate was fired and later the first onAfter render was fired.

javiut ( 2014-10-07 13:35:23 +0800 )edit

youcan see the same question a little more cleaner here. http://stackoverflow.com/questions/26237727/java-zk-framework-event-after-window-oncreate-and-after-listbox-onafterrender

javiut ( 2014-10-09 13:39:34 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-09-30 14:42:22 +0800

Seen: 54 times

Last updated: Oct 05 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More