Getting Started with Weblets
This basic guide gives a small introduction into getting started with
Download Weblets
The weblets sources can be obtained via the download links above. You have to use Apache Maven to build the release.
It should contain everything, you need to get started with Weblets
Once built your target directories should contain following packages
- a weblets-impl jar file with the implementation classes
- a weblets-api jar file with the external apis
- the documentation
- a weblets-demo war file with the demos to weblets and the dependencies
To get started simply drop the weblets-demo war file into the application server of your choice and then call
http://<url to application server>:<port>/weblets-demo/
You should get the demo page showcasing all features of weblets.
The single pages can be used as references for your own development.
Getting started with Maven2
Important: as of Weblets 1.2 we are going to move to a the maven central repository this process is currently underway and will take a few days, the documentation regarding the maven setup is currently obsolete. Once the maven central repository upload is established we will update the maven docs accordingly. Up until this is done you have to compile from source, sorry about the inconvenience.Weblets can be injected via a maven build, however currently you only can do it from the java.net repository.
following entries have to be added to your Maven build file under dependencies.
<dependency> <groupId>com.github.weblets</groupId> <artifactId>weblets-api</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>com.github.weblets</groupId> <artifactId>weblets-impl</artifactId> <version>1.2</version> </dependency>
For older versions of weblets following dependency entries have to be added:
<dependency> <groupId>net.java.dev.weblets</groupId> <artifactId>weblets-api</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>net.java.dev.weblets</groupId> <artifactId>weblets-impl</artifactId> <version>1.1</version> </dependency>The main difference is the namespace and the version. The project has been moved in the past from java.net to github.com hence this change.
getting started with Github
to get started via github you need two prerequisites
- a git client of your choice
- a working
Maven2 configuration
After checking out simply do a mvn clean install from your checkout dir, and then, after the build process simply go to the weblets-demo subdir and call mvn jetty:run .
After that a jetty servlet runner should be available on port 9090 with the weblets demo application deployed in it.
Simply point your browser to
http://localhost:9090/
for further details
Summary
Getting started is easy, two methods are available: download or Subversion checkout, try it, it is easy to get started, it is easy to use.
Contents
- Users documentation: Index
- What is new in this release
- Users documentation: Getting started
- Users documentation: Setup guide
- Users documentation: Introduction to the api patterns
- Users documentation: JSP Weblets usage guide
- Users documentation: Servlet Weblets usage guide
- Users documentation: JSF Weblets usage guide
- Users documentation: Resources Weblets usage guide
- Users documentation: Weblets packaging guide
- Users documentation: Weblets Subbundles
- Users documentation: Weblets reporting guide
- Developers documentation: Programming Weblets
- Users documentation: Weblets general FAQ