You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sam Barrow <sa...@sambarrow.com> on 2009/12/04 17:39:53 UTC

FormComponentPanel

I have a FormComponentPanel called Name with 3 fields.
Is there a way to set it up so that by filling out one of the fields,
this makes the other ones required?

For example if there is an optional Name field on a form it can be
completely filled out or completely empty, but i dont want somebody
filling out just one of the fields.



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


Re: FormComponentPanel

Posted by Igor Vaynberg <ig...@gmail.com>.
override convertinput() and check that all three are filled in by
calling getconvertedinput() on the child components

-igor

On Fri, Dec 4, 2009 at 8:39 AM, Sam Barrow <sa...@sambarrow.com> wrote:
>
> I have a FormComponentPanel called Name with 3 fields.
> Is there a way to set it up so that by filling out one of the fields,
> this makes the other ones required?
>
> For example if there is an optional Name field on a form it can be
> completely filled out or completely empty, but i dont want somebody
> filling out just one of the fields.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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