cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: [CForms] ValidationError, Was: Add isValid() to a widget?
Date Sun, 10 Jul 2005 22:15:55 GMT
On 08.07.2005 20:58, Vadim Gritsenko wrote:

> While on the subject of forms validation... I noticed several very 
> annoying things:
> 
>  * Field.getValidationError() *does not* simply return validation error:
>    it has side effects!!! It calls getValue() which can invoke parsing
>    and validation - depending on state, resulting in weird behavior.
> 
>  * Field.setValidationError() *does not* simply set validation error:
>    it *also* has side effects!!! For some reason it changes widget state,
>    which can results in weird behavior.
> 
> Any objections on fixing these violations as well?

+1 Of course no objections for fixing side effects.

Joerg

Mime
View raw message