cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [woody] validation error messages
Date Tue, 11 Nov 2003 17:36:52 GMT
On Tue, 2003-11-11 at 15:15, Bruno Dumon wrote:
> On Tue, 2003-11-11 at 12:47, Jeremy Quinn wrote:
> > Dear All
> > 
> > I noticed that when you use something like :
> > 
> > 	form.getWidget ("email").setValidationError (
> > 		new ValidationError ("validation.email.inuse")
> > 	);
> > 
> > then the i18n tag output by setValidationError() looks like this:
> > 
> > 	<i18n:text catalogue="woody">validation.email.inuse</i18n:text>
> > 
> > which means that any custom validation errors pretty much have to be 
> > kept in WoodyMessages which could well be inconvenient ....
> > 
> > Is it really necessary for Woody to set the catalogue attribute in this 
> > situation?
> 
> Yes and no. The reason is historical: ValidationErrors were only created
> by Woody classes themselves, so all their messages would come from the
> woody catalogue.
> 
> Now that setValidationError is a public method, it is indeed necessary
> to add some more flexibility to the ValidationError class.

I did some refactorings for this, will commit them after the code
freeze.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message