cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Chávez <ccha...@agsoftware.dnsalias.com>
Subject Re: validation: repeater must have at least one row
Date Fri, 10 Sep 2004 19:31:03 GMT

Binkley, Peter Escribio :-)
> Is there a way to set a validation rule to ensure that a repeater has at
> least one row? According to the documentation,
>
> "... a repeater widget does not implement ValidationErrorAware. However, a
> validator attached to a repeater could perform inter-row checks on the
> fields in the different rows of the repeater, and set validation errors on
> these fields (instead of on the repeater itself)."
>
> But if the repeater has no child rows, there are no fields to set the
> validation errors on. What's the best way to handle this?
>
> Peter
  Hi Peter,

  I use the widget <fd:messages/> for these case.

  Cheers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


-- 
Carlos Chávez

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message