Store"

From Documentation
Line 1: Line 1:
 
{{ZKEssentialsPageHeader}}
 
{{ZKEssentialsPageHeader}}
 +
 +
===Prerequisites===
 +
 +
*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]
  
 
===Set-up the ZK Essentials sample===
 
===Set-up the ZK Essentials sample===
#Go to the ZK Essentials [http://code.google.com/p/zkbooks/source/checkout http://code.google.com/p/zkbooks/source/checkout] or [http://zkbooks.googlecode.com/svn/trunk/zkessentials/store/ http://zkbooks.googlecode.com/svn/trunk/zkessentials/store/] , and checkout the source using svn. This will put the sample code for Store into a folder named zkessentials-store.
+
#For this section we will assume you download the application first rather than do a git checkout from Maven
#Create a new ZK project: ''File > New > Others... > ZK > ZK Project'' and click '''Next'''.
+
#Therefore [https://github.com/zkbooks/ZK-Essentials/zipball/withoutdb click here] to download the store without a database, and unzip to any folder you want
#:[[Image:ZKEssentials_Setup_NewProj.png]]
+
#In ZK Studio go to New -> Import, and type "Existing Maven Projects", highlight the option and click next
#Enter project name and specify which ZK package you want to use for this project. And then click '''Finish'''.
+
[[File:ZKEssentials_Existing_Maven_Projects.png]]
#:[[Image:ZKEssentials_Setup_CreateProj.png]]
+
#Click browse and locate the extracted zkessentials directory and press OK
#Import the sample code by right clicking the project and select ''Import> Import...''
+
[[File:ZKEssentials_Click_Browse.png]]
#Choose import from ''File System'' under a folder called ''General''. Click '''Next'''.
+
#Check the checkbox next to the POM and press finish
#:[[Image:ZKEssentials_Setup_ImportFileSystem.png]]
+
[[File:ZKEssentials_check_the_POM.png]]
#Click '''Browse''' for the '''From directory''' field. Select the folder containing the sample code and click '''OK'''. And then click '''Finish''' in the Import dialog window to import.
+
#The ZK Essentials project will now be in your workspace ready to run after maven downloads all the appropriate files
#:[[Image:ZKEssentials_Setup_ImportSample.png]]
 
#Click '''Yes''' to over write the files: index.zul and web.xml
 
#:[[Image:ZKEssentials_Setup_OverwriteFiles.png]]
 
 
 
  
 
{{ZKEssentialsPageFooter}}
 
{{ZKEssentialsPageFooter}}

Revision as of 01:26, 14 February 2012

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

  1. Click browse and locate the extracted zkessentials directory and press OK

ZKEssentials Click Browse.png

  1. Check the checkbox next to the POM and press finish

ZKEssentials check the POM.png

  1. The ZK Essentials project will now be in your workspace ready to run after maven downloads all the appropriate files



Last Update : 2012/02/14

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