0

Running the todo sample

asked 2012-08-07 16:31:03 +0800

kbsimm gravatar image kbsimm
153
http://www.ArivX.com/

The "ZK Installation Guide/Quick Start/Create and Run Your First ZK Application with Eclipse and ZK Studio" document found here, http://books.zkoss.org/wiki/ZK_Installation_Guide/Quick_Start/Create_and_Run_Your_First_ZK_Application_with_Eclipse_and_ZK_Studio in the section "Running the sample application with Eclipse" notes that the todo project downloaded with git can be run by right clicking on the todo project and selecting "Run As->Run On Server".

Firstly there is no Run on Server option.

Second it seems to me that there should be some compile step in this process.Or that Eclipse needs to be set up to automatically compile this application.

I have messed with the Run As options a bit selecting Run As -> Maven Build and Run As -> Maven Install and Run As -> Run Configurations and eventually was able to get the Run As -> Run on Server option to appear. When I select that option I get a 404.

So it appears I am missing a compile step or setup eclipse for maven projects step.

All help is appreciated.

thank you

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-08-07 17:48:36 +0800

kbsimm gravatar image kbsimm
153
http://www.ArivX.com/

Via google some sites suggest that "Run As Server" may be missing from Eclipse as the project is not a "Web Project"? (What exactly is a "Web Project"? And please don't answer "A project created for the Web.")
They go on to say go to Properties->Project Facets (What is a Project Facet?) and make sure Dynamic Web Module is selected.
After this change I now have a WebContent directory in the "todo" project but no index.zul which I would think I would need to run the app no matter what.

Other links suggest installing "M2E Eclipse WTP without explaining why or how that is related? I have done that and it did not help.

link publish delete flag offensive edit

answered 2012-08-07 18:38:18 +0800

kbsimm gravatar image kbsimm
153
http://www.ArivX.com/

I finally figured it out. Per my second post above enabling a "Dynamic Web Module" was necessary but one also needs to enable the Project Facet (still don't know what that is) "ZK Studio Supports".

After doing that and selecting "Run As Server" index.zul and other files were created in the WebContent delivery.

If someone can explain all this "magic" I sure would appreciate it.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2012-08-07 16:31:03 +0800

Seen: 68 times

Last updated: Aug 07 '12

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