make both of your components not required, and use IFormValidator to make sure at least one is filled in. alternatively you can override form.onvalidate() and perform custom validation there. remember to use component.getconvertedinput() and not getmodelobject() during validation.
-igor On Mon, Apr 6, 2009 at 7:26 PM, Chris Carlson <[email protected]> wrote: > New to wicket trying to figure out the best way to do custom validation. I > have a dropdown and a textfield, only 1 of which is required. I want the > user to select from the dropdown, and if their option is not listed, be > able to enter anything in the textfield > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
