-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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.
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.
Asked: 2012-08-07 16:31:03 +0800
Seen: 68 times
Last updated: Aug 07 '12