Skip to content

Java HTML Form Library for validation and reducing boilerplate code

License

Notifications You must be signed in to change notification settings

jochen777/jFormchecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jFormChecker

HTML Forms in Java made easy.

Please be aware, that this project will not be maintained by me any longer.

I created a successor which is far better:

https://github.com/jochen777/jWebForm

and: https://github.com/jochen777/jWebForm/blob/master/doc/jformchecker_compare.md

Quickstart

Documentation

See changelog

Build Status

Overview

The form-handling support in current java MVC frameworks is very basic. jFormChecker tries to fill this gap by providing these features:

  • central form-definition for reuse and separation of concerns
  • handling the request-response loop for forms
  • handling error-messages and error-highlighting of the label
  • correct tab-order
  • pre-fillments of form-elements
  • automatically syntactical correct HTML (5) with label and "label-for"
  • pre-fillments of user-input after submit
  • max-lenght constraint on every element to avoid security issues
  • easy validation, easy custom validation
  • all standard form fields and more (date-input)
  • very compact output in sourcecode
  • prebuild Bootstrap Styles
  • prebuild ajax handling
  • avoiding a lot of boilerplate code
  • translateable error-messages.
  • minimal dependencies!

jFormChecker is for java what Symfony-Forms is for PHP or Rose::HTML for Perl.

See this project for integration into servlet-based frameworks:

https://github.com/jochen777/jformchecker-integration

The jFormChecker way

The concept is simple:

  1. Define a form with every element in it

  2. Let the central "FormChecker" class handle the validation and processing

  3. use a simple tag in the output

Maven Dependency

...
<dependency>
    <groupId>de.cyclon-softworx</groupId>
    <artifactId>jformchecker</artifactId>
    <version>0.1.16</version> <!-- check on maven central for the latest version -->
</dependency>
...

Thanks

Thanks to Arman Sharif for his work on jreform.sourceforge.net and the great Critera Classes

About

Java HTML Form Library for validation and reducing boilerplate code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages