New HTML5 validation dialect

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

New HTML5 validation dialect

Zemi
Administrator
Hello,

we have just released a new dialect for the Thymeleaf template engine.

It's a very simple piece of code that modifies HTML markup in order to use HTML5 form validation. This validation only works in a few modern browsers.

You could read more about it at the project's page:
    http://html5valdialect.sourceforge.net/

The library can be downloaded from Maven central repository or Sourceforge. There is also an example webapp.

Regards,
   Jose Miguel Samper & Francisco Perez

Reply | Threaded
Open this post in threaded view
|

Re: New HTML5 validation dialect

danielfernandez
Administrator
Really interesting, well done Zemi! :-)
Reply | Threaded
Open this post in threaded view
|

Re: New HTML5 validation dialect

blandger
In reply to this post by Zemi
Only one thing is missing for me, like:
......
@Pattern(regexp = "^[a-zA-Z0-9_-]{3,15}$", message = "{com.web.error.incorrect.user.password}")
private String password;
.....
Reply | Threaded
Open this post in threaded view
|

Re: New HTML5 validation dialect

Zemi
Administrator
That suggestion sounds good to me, we could include in next releases
   https://sourceforge.net/p/html5valdialect/tickets/3/