Client Side Validation Integration

EDIT
contacted the author of the game-js-validation. Bleeding; Playback must be compiled against scala virtualized on 2nd release, and nested class classes are not yet supported. A really impressive project, I hope this bears fruit, as the prototype does practically what I was hoping for ...

Found: https://github.com/namin/play-js-validation

Does anyone know if there are plans for built-in client-side validation in Play 2.0?

I am currently creating a controller, model (with form validation) and dao scala files based on the existing database schema; I would like to include client-side validation as part of this process!

Thanks for the tips, insider knowledge, etc.

ps At least busy playing back a user group; most posts seem to be completely ignored (of course, many questions related to Stackoverflow Play go unanswered, so this thread may be DOA ...)

+5
source share
1 answer

There are no such plans that I am afraid of, at least I have not heard (note: I am not a member of the development team, just a player)

Bookmark Tickets for Play Lighthouse

On the other hand, I doubt that this is fully consistent with Play's assumptions. Client-side validation is performed using some external JS solution, which should not be determined by the infrastructure, no one said that it should use ie. jQuery by default.

, , - JS- , .. , jQuery:

@inputText(entrantForm("identitynumber"),
    '_label->"Identity number",
    'class -> "required",
    'minlength -> "11",
    'maxlength -> "11")
+2

All Articles