Usage

This section describe some common usage of framework - creating new application module. The screenshots page shows the result of this sample code.

Maven repository

VPDA is developed and packaged using maven. If you are using maven , just add dependencies to your modules poms. You will find names of artifacts at concrete release site. You need to add maven repository to your pom, because now vpda is not distributed to central repository. Just add this url in pom.xml or for your maven proxy :

http://vpda.org/maven-repo

IDE

The best scenario is to combine maven with IDE. Then you can run e.g eclipse:eclipse goal and just import projects to IDE. Otherwise you need to link your application with distributed jars manually.

mvn eclipse:eclipse -Dvpda.repos

Running

If you are using eclipse, be inspired by created sample launchers. For running from command line you can find launchers in src directory of zip or packaged in sample application.

Building from source

In downloaded zip, you will find directory src , here you can build frameowork using

mvn clen install eclipse:eclipse -Dvpda.repos

How to use

Main idea of this framework is to build applications using view providers. Each view provider has its client ui and server component. When creating new application using this framework, by default you just need to create new module and create new server view providers components. All code here comes from sample employees application. You can find it in src/vpda-samples/samples-emp/samples-emp-server-core. You should follow same step when creating your new application.

  1. Create new module emp
  2. Add menu entries
  3. Add Database table mapping
  4. Add list view provider
  5. Add detail view provider