ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

extractor icon in elipse

vaishalisali
1 Dec 2011 13:26:09 GMT
1 Dec 2011 13:26:09 GMT

Hi to all,

http://books.zkoss.org/wiki/ZK%20Studio%20Essentials/Features%20of%20ZK%20Studio/Zscript%20to%20MVC%20Extractor

please see this link and then help me , I want this "extractor icon " in my eclipse for converting my simple .zul file and to extract my selected zul text to become an zk MVC Controller.

How i get it. If any one knows , please help me.

paowang
2 Dec 2011 03:16:25 GMT
2 Dec 2011 03:16:25 GMT

Did you install the ZK Studio in Eclipse?

vaishalisali
2 Dec 2011 05:36:47 GMT
2 Dec 2011 05:36:47 GMT

Hi paowang


Yes i installed ZK Studio in my Eclipse , as i am doing zk projects always in that.

Though ZK Studio is installed , my eclipse can not have that Extractor icon. So what i have to do now ?????

paowang
2 Dec 2011 06:04:10 GMT
2 Dec 2011 06:04:10 GMT

What version your eclipse is? My eclipse has this "extractor icon".

vaishalisali
3 Dec 2011 08:06:33 GMT
3 Dec 2011 08:06:33 GMT

Hi paowang,

My eclipse is Galieo 3.5. But it does not contain it.

Also again i want to know - are you doing zk projects with MVC pattern, if you are doing then please tell me about project file hierarchy in our eclipse at Project explorer window.
When I am tried to follow steps give at below link :

http://books.zkoss.org/wiki/ZK%20Essentials/Handling%20the%20Login%20Process%20using%20ZK%20MVC%20and%20Sessions/Managing%20credentials%20using%20ZK%20Sessions

Problem is where to put this DAO and Bean Classes in our project. And how to call this DAO classes.
Ex. As like in Jsp / struts project the hierarchy is :
Demo
|
SRC
|
Controller - java class
|
Model - Beans

webContent
|
WEB-INF
|
web.xml
|
config.xml

index.jsp , login.jsp , etc all view is in web content.

As in Struts all mapping is mentioned in the config.xml , similar to the this in zk how to create this mapping.

I hope you will understand my problem about MVC for zk. if you are doing projects this way , please help me.

paowang
7 Dec 2011 02:01:46 GMT
7 Dec 2011 02:01:46 GMT

You can try to re-install ZK studio or install ZK studio in another clean and different version eclipse.
I am not sure why "extractor icon" doesn't appear.

According to the link you posted, the dao and bean classes should put into you java src path.
Then, you can access your dao objects in such as GenericForwardComposer.doAfterCompose(Component) and do something.

ZK is an Ajax framework. There is no xml to set "rules" for navagate pages. Develper usually write codes to change only a part of page's "content" for a better user experience.

I hope this answer your questions.