0

About SelectorComposer

asked 2013-06-25 10:53:15 +0800

shenjie gravatar image shenjie
47 2

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.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-25 13:11:51 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Use MVVM Architecture of ZK you do not need to Wire Id or components with Id also You can remove use of SelectComposer

link publish delete flag offensive 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
3 followers

RSS

Stats

Asked: 2013-06-25 10:53:15 +0800

Seen: 13 times

Last updated: Jun 25 '13

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