Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Wicket JSR303 ParsleyJs integration

Thanks to Cloudbees buildhive for providing a free Jenkins instance. Build Status

Parsley.js is a client-side form validation library (documentation).

Apache Wicket is a Java Web framework providing clean separation between markup and logic.

JSR303 - Bean validation is a Java specification providing an easy way to define constraint on your model objects.

This project provides a simple way to get client side validation for POJOs annotated with Bean Validation's constraints.

Setup on your project

Add the following Maven dependency


To use it in your Wicket application, you will need to register Parsley with your application. Basically, you will add this code in your Application#init() method :

public void init(){

For every form that you want to validate using Parsley, you will need to add ParsleyFormBehavior to your Form :

Form form = new Form("form");
form.add(new ParsleyFormBehavior());

Every FormComponent in the specified Form will get a correct validator (both client and server side). Please notice that you will need to use a model implementing IPropertyReflectionAwareModel in order for the tool to read annotation metadata.

JavaScript dependencies

This library depends on Parsley.Js via the artifact deployed on Webjars. This way you can easily use an updated version of the library in your project.

Bug tracker

Have a bug? Please create an issue here on GitHub!

Special notes

Many thanks to Martin Grigorov for the blog article which inspired me :

Thanks to James Ward for the initiative :

The implementation provided here is open for pull request or further integration into WicketStuff.

Copyright and license

Copyright 2012 Code-Troopers.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Basic integration between Wicket, JSR303 and ParsleyJS client side validation library






No packages published