Skip to content

Apache Wicket 6 Authentication and Authorization Example

License

Notifications You must be signed in to change notification settings

cggm80/wicket-6-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Wicket 6 Authentication and Authorization Example

Simple example include:

  • Apache Wicket (6.0.0, example for Apache Wicket 1.5 you can find here)
  • Jetty (8.1.7)
  • i18n (English, German)
  • Hibernate (4.1.7, hsqldb is default and mysql example config is included)
  • Spring (3.1.2)
  • Authentication (Register, Login, Logout)
  • Authorization (Render panels, Register only for anonymous user access)
  • Standalone web application packaging

Requirements

  • Apache Maven 2
  • Java 6

Run application

To run application:

git clone https://github.com/Bessonov/wicket-6-example
cd wicket-6-example
mvn jetty:run

To show: http://localhost:8080/

Standalone application packaging

To package:

mvn package

To run:

java -jar target/wicket6exmaple-1.0-SNAPSHOT.jar
or
java -cp target/wicket6exmaple-1.0-SNAPSHOT.jar de.bessonov.EmbeddedJettyServer

To show: http://localhost:8080/

Change package structure

For own package structure you can:

  • Refactor
  • Rearchetype (especially for non-IDE users)

Rearchetype

To create archetype:

git clone https://github.com/Bessonov/wicket-6-example
cd wicket-6-example/
mvn clean archetype:create-from-project
cd target/generated-sources/archetype/
mvn install

And then you can create application:

cd work_folder
mvn archetype:generate -DarchetypeCatalog=local -DarchetypeGroupId=de.bessonov -DarchetypeArtifactId=wicket6example-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=my.domain -DartifactId=myproject -Dversion=1.0-SNAPSHOT

License

Copyright (c) 2012 Anton Bessonov. All rights reserved. This program and the accompanying materials are made available under the terms of the Creative Commons Attribution 3.0 License which accompanies this distribution, and is available at http://creativecommons.org/licenses/by/3.0/

About

Apache Wicket 6 Authentication and Authorization Example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 93.6%
  • HTML 6.4%