Store with a Database"

From Documentation
m
m (Redirected page to ZK Essentials)
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
#REDIRECT [[ZK Essentials]]
 +
 
{{ZKEssentialsPageHeader}}
 
{{ZKEssentialsPageHeader}}
  
To import the project into eclipse it is easiest to make use of the WAR file which has been provided in the SVN. We can directly import the WAR file using eclipse’s import mechanism.
+
===Prerequisites===
  
#To start go to File -> Import in eclipse and you will be presented with the following dialog
+
*You require Maven for ZK Studio/Eclipse, if you do now have it you can follow this tutorial on [http://m2eclipse.sonatype.org/installing-m2eclipse.html installing it]
#:[[File:ZKEss_import.png]]
 
#Type WAR into the filter text then select the storewithdb WAR file you just downloaded and press next
 
#:[[File:ZKEss_war_import.png]]
 
#Download the WAR file from https://zkbooks.googlecode.com/svn/trunk/zkessentials/storewithdb/storewithdb.war and place it into an accessible folder
 
#On the WAR import screen browse for the WAR file and select it, the rest of the fields should be filled out automatically
 
#:[[File:ZKEss_war_import_final.png]]
 
#Click finish and the WAR file will be imported
 
#You should now have a clean project imported with no errors. At this point you can run the index.zul page on your server
 
#:'''NOTE: Having imported if eclipse is registering a lot of errors then please see the section below labelled "Dealing with Errors"'''
 
#:[[File:ZKEss_imported.png]]
 
  
 +
===Set-up the ZK Essentials sample===
 +
#For this section we will assume you download the application first rather than do a git checkout from Maven
 +
#Therefore [https://github.com/zkbooks/ZK-Essentials/zipball/withdb click here] to download the store without a database, and unzip to any folder you want
 +
#In ZK Studio go to New -> Import, and type "Existing Maven Projects", highlight the option and click next
 +
#:[[File:ZKEssentials_Existing_Maven_Projects.png]]
 +
#Click browse and locate the extracted zkessentials directory and press OK
 +
#:[[File:ZKEssentials_Click_Browse.png]]
 +
#Check the checkbox next to the POM and press finish
 +
#:[[File:ZKEssentials_check_the_POM.png]]
 +
#The ZK Essentials project will now be in your workspace ready to run after maven downloads all the appropriate files
  
 
{{ZKEssentialsPageFooter}}
 
{{ZKEssentialsPageFooter}}

Latest revision as of 23:55, 28 March 2013

Redirect to:

Stop.png This article is out of date, please refer to http://books.zkoss.org/zkessentials-book/master/ for more up to date information.


Prerequisites

  • You require Maven for ZK Studio/Eclipse, if you do now have it you can follow this tutorial on installing it

Set-up the ZK Essentials sample

  1. For this section we will assume you download the application first rather than do a git checkout from Maven
  2. Therefore click here to download the store without a database, and unzip to any folder you want
  3. In ZK Studio go to New -> Import, and type "Existing Maven Projects", highlight the option and click next
    ZKEssentials Existing Maven Projects.png
  4. Click browse and locate the extracted zkessentials directory and press OK
    ZKEssentials Click Browse.png
  5. Check the checkbox next to the POM and press finish
    ZKEssentials check the POM.png
  6. The ZK Essentials project will now be in your workspace ready to run after maven downloads all the appropriate files



Last Update : 2013/03/28

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.