You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Binkley, Peter" <Pe...@ualberta.ca> on 2004/09/10 19:46:09 UTC
validation: repeater must have at least one row
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: validation: repeater must have at least one row
Posted by Carlos Chávez <cc...@agsoftware.dnsalias.com>.
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