cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: ValidationAware forms
Date Fri, 03 Jun 2005 09:22:55 GMT


> -----Oorspronkelijk bericht-----
> Van: Reinhard Poetz [mailto:reinhard@apache.org]
> Verzonden: vrijdag 3 juni 2005 9:46
> Aan: dev@cocoon.apache.org
> Onderwerp: ValidationAware forms
> 
> 
> AFAICS the widget "Form" doesn't implement ValidationAware. Is there a
> special
> reason why this feature hasn't been added yet?

I'm not sure, but I think it is because a form doesn't have a visual representation in HTML,
where other widgets do have a visual representation. Where should CForms place the error marker
(the red "!") for a form?

I agree that it will be helpful to have this feature. And I think that repeaters are a similar
case (aren't ValidationErrorAware either, but I have cases here where I want it to hold an
error instead of creating a messages widget).

> 
> I was asked this in some of my trainings and IIRC there have been some
> questions
>   on users@cocoon. My usual answer is adding an "error widget" that can
> contain
> the error. Is this our 'official' recommendation or are there better ways
> to
> achieve this?
> 
> --
> Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach
> 
> {Software Engineering, Open Source, Web Applications, Apache Cocoon}
> 
>                                         web(log): http://www.poetz.cc
> --------------------------------------------------------------------


Mime
View raw message