DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Fusion Full-Stack Framework for Modern Web Dev on Java Backend
  • All About Spring Boot [Tutorials and Articles]
  • 4 Spring Annotations Every Java Developer Should Know
  • Creating Annotations in Java

Trending

  • Cognitive AI: The Road To AI That Thinks Like a Human Being
  • LLMs for Bad Content Detection: Pros and Cons
  • The Systemic Process of Debugging
  • Implementing Stronger RBAC and Multitenancy in Kubernetes Using Istio
  1. DZone
  2. Coding
  3. Frameworks
  4. JSR 303 and JVM Web Framework Support

JSR 303 and JVM Web Framework Support

Matt Raible user avatar by
Matt Raible
·
Mar. 09, 11 · Interview
Like (0)
Save
Tweet
Share
7.24K Views

Join the DZone community and get the full member experience.

Join For Free

Emmanuel Bernard recently sent an email to the JSR 303 Experts Group about the next revision of the Bean Validation JSR (303). Rather than sending the proposed changes privately, he blogged about them. I left a comment with what I'd like to see:

+1 for Client-side validation. I'd love to see an API that web frameworks can hook into to add "required" to their tags for HTML5. Or some service that can be registered so the client can make Ajax requests to an API to see if an object is valid.

Emmanuel replied that most of the necessary API already exists for this, but frameworks have been slow to adopt it.

Hi Matt, 

The sad thing is that the API is present on the Bean Validation side but presentation frameworks are slow to adopt it and use it :( 

RichFaces 4 now has support for it but I wished more presentation frameworks had worked on the integration. If you can convince a few people or have access to a few people, feel free to send them by me :) 

The integration API is described here. Let me know if you think some parts are missing or should be improved. We should definitely do some more buzz around it.

In the interest of generating more buzz around it, I decided to do some research and see what JVM Frameworks support JSR 303. Here's what I've come up with so far (in no particular order):

  • RichFaces 4 - Client Side Validation
  • Tapestry's JSR 303 - Bean Validation Library
  • Wicket JSR-303 Validators
  • Configuring a JSR-303 Validator for use by Spring MVC
  • GWT Validation
  • Vaadin Bean Validation JSR 303 support
  • Inline field validation in Scala/Lift using JPA and JSR 303

Struts 2 has an open issue, but doesn't seem to support JSR 303. Since I did a quick-n-dirty google search for most of these, I'm not sure if they support client-side JavaScript or HTML5's required. If you know of other JVM-based web frameworks that support JSR 303, please let me know in the comments.

From http://raibledesigns.com/rd/entry/jsr_303_and_web_framework

Java (programming language) Java virtual machine Framework Spring Framework Web Service

Opinions expressed by DZone contributors are their own.

Related

  • Fusion Full-Stack Framework for Modern Web Dev on Java Backend
  • All About Spring Boot [Tutorials and Articles]
  • 4 Spring Annotations Every Java Developer Should Know
  • Creating Annotations in Java

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: