Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.4.9 validation messages not html escaped in page source #42

Open
ramyakrish85 opened this issue Jun 17, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@ramyakrish85
Copy link

commented Jun 17, 2014

I installed plugin version 1.4.9.The validation was not working for me as the message section has unescaped html:Any ideas?Using it with grails 2.3.7.

messages: {
custName: { maxlength: function() { return 'Property \u005bcustName\u005d of class \u005bclass Cust\u005d with value \u005b' + $('#custName').val() + '\u005d exceeds the maximum size of \u005b100\u005d'; }, required: 'Customer Name cannot be blank.' },
custDesc: { maxlength: function() { return 'Property \u005bcustDesc\u005d of class \u005bclass Cust\u005d with value \u005b' + $('#custDesc').val() + '\u005d exceeds the maximum size of \u005b200\u005d'; } },

@YueZhaoDreams

This comment has been minimized.

Copy link

commented Sep 24, 2014

I have the same issue. I'm using it with grails 2.3.8, Java 7.

$(function() {
    var myForm = $("form:first");
    myForm.validate({
        onkeyup: false,
        errorClass: "error",
        errorElement: "label",  
        validClass: "valid",            
        onsubmit: true,
        rules: {
            name: { required: true },
            asOfDate: { date: true, required: true } 
        }, 
        messages: {
            name: { required: 'Property \u005bname\u005d of class \u005bclass com.incentivelab.app.commands.DesignCommand\u005d cannot be blank' },
asOfDate: { date: 'Property asOfDate must be a valid Date', required: 'Property \u005basOfDate\u005d of class \u005bclass com.incentivelab.app.commands.DesignCommand\u005d cannot be null' }

        }  
    });
});       
@ramyakrish85

This comment has been minimized.

Copy link
Author

commented Oct 8, 2014

Remote constraint validation seems to problematic in previous versions as well.I began using jquery validation directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.