Yes I did. Is it better not to not do this?

Regards,

Bernard

On Thu, 29 Jul 2010 16:54:28 -0300, you wrote:

>Hi Bernard, did you call setRequired method on your FormComponentPanel input
>components?
>like: formComponentPanel.fieldOne.setRequired(true)
>
>On Thu, Jul 29, 2010 at 4:33 PM, <[email protected]> wrote:
>
>> 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]
>>
>>


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

Reply via email to