validation - play framework mandatory item -
validation - play framework mandatory item -
is possible automatically set * before required field label? in illustration firstname required (@required in model) , hence * should shown after firstname in label.
sample code:
#{field 'user.firstname'} <div class="field"> <label for="${field.id}">&{'customer.firstname'}${field.}</label> <input id="${field.id}" size="30" type="text" name="${field.name}" value="${field.value}" class="${field.errorclass}" /> <span class="error">${field.error}</span> </div> #{/field}
you need edit #{field /} tag recognize field annotations , draw * automatically.
or extend jqvalidate module add together via javascript.
validation playframework
Comments
Post a Comment