cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: [CForms] ValidationError, Was: Add isValid() to a widget?
Date Sun, 10 Jul 2005 09:57:47 GMT
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?
> 
Side effects are always bad! +1 from me to fix this.

Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message