Hi,

org.apache.wicket.markup.html.form.FormComponentPanel 
aims to act to the outside world as one component.

I want it to behave in a way that it flags missing required input on
behalf of its enclosed components.

Imagine an input component with 4 fields for a credit card number.

If input in any of the fields is missing, then I want to highlight (eg
with FormComponentFeedbackBorder) the enclosing component not any
individual sub-fields .

As an easy test example, please consider

org.apache.wicket.examples.forminput.Multiply which is included in the
Wicket distribution.

http://www.wicketstuff.org/wicket/forminput/?wicket:bookmarkablePage=sources:org.apache.wicket.examples.source.SourcesPage&SourcesPage_class=org.apache.wicket.examples.forminput.FormInput&source=Multiply.java

What is the best way to change this example so that a Required error
is generated for Multiply if any of its components are empty? I found
that checkRequired() is not called.

Many thanks.

Bernard


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to