-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm new for zk 6, I have a class that extends SelectorComposer,such as
public class MyComposer extends SelectorComposer<Window>{
}
I knew if I want to do some initialization in this class,just add an EventListener that listen onCreate Event,such as
@Listen("onCreate=#winId")
public void onCreate(){}
it works well.
my problems is,I want to create a template class that do some common initialization jobs and other classes extends this one,in many cases,I didn't know
what the window id is,and there may be more than one window in a page,so I can't use @Listen("onCreate=window")
either.I have tryied such code:
@Listen("onCreate=self")
,doesn't work either,is there any way to solve it?
sorry for my so poor English and hope you can understood it.
Use MVVM Architecture of ZK you do not need to Wire Id or components with Id also You can remove use of SelectComposer
Asked: 2013-06-25 10:53:15 +0800
Seen: 13 times
Last updated: Jun 25 '13
composite component help [closed]
Source code of page dosen't change when usinge an Include
How can i pass parameter to a composite component
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true