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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -