Grzegorz Kossakowski a écrit :
Meanwhile having the springified validator, i added them myself in the flowscriptRaphaël Piéroni pisze:Thanks for the answer. like in : var form = new Form("view/user/create.cform"); var validator = spring.getBean("createUserValidator"); form.lookupWidget('userName').addValidator(validator); form.lookupWidget('unixLogin').addValidator(validator); In the validator i do : ValidationError error = new ValidationError("error.createUser.userName", true); ((Field) widget).setValidationError(error); return false; I saw (using logs) that the validation is false (which is what i test) But the form completes as if it was validated. Raphaël Anyway, you can still develop Avalon-based validator using 1.0.0-RC1 version of Forms. The choice is yours. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- [Cocoon 2.2 + Cforms] Validation a field using the Da... Raphaël Piéroni
- Re: [Cocoon 2.2 + Cforms] Validation a field usi... Raphaël Piéroni
- Re: [Cocoon 2.2 + Cforms] Validation a field... Grzegorz Kossakowski
- Re: [Cocoon 2.2 + Cforms] Validation a f... Raphaël Piéroni
- Re: [Cocoon 2.2 + Cforms] Validation... Grzegorz Kossakowski
- Re: [Cocoon 2.2 + Cforms] Valid... Raphaël Piéroni
- Re: [Cocoon 2.2 + Cforms] V... Raphaël Piéroni
