You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by bebetu <an...@yahoo.com> on 2007/09/25 14:54:26 UTC

Override appendOptionHtml in a DropDownChoice with setRequired(true)

Hi,
I am using Wicket 1.3 beta3. I want to have a mandatory DDC in a WizardStep
so I have ddc.setRequired(true). 
I've overridden appendOptionHtml to handle the <option> rendering and I
noticed that whenever I submit the step with a valid selection on the DDC, I
get a feedback error message saying that the DDC field is mandatory.
If I don't override the appendOptionHtml method the behavior is as expected.
Is this a bug?

florin
-- 
View this message in context: http://www.nabble.com/Override-appendOptionHtml-in-a-DropDownChoice-with-setRequired%28true%29-tf4515329.html#a12878901
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Override appendOptionHtml in a DropDownChoice with setRequired(true)

Posted by Igor Vaynberg <ig...@gmail.com>.
sounds to me like you are not overriding it correctly.

-igor

On 9/25/07, bebetu <an...@yahoo.com> wrote:
>
>
> Hi,
> I am using Wicket 1.3 beta3. I want to have a mandatory DDC in a
> WizardStep
> so I have ddc.setRequired(true).
> I've overridden appendOptionHtml to handle the <option> rendering and I
> noticed that whenever I submit the step with a valid selection on the DDC,
> I
> get a feedback error message saying that the DDC field is mandatory.
> If I don't override the appendOptionHtml method the behavior is as
> expected.
> Is this a bug?
>
> florin
> --
> View this message in context:
> http://www.nabble.com/Override-appendOptionHtml-in-a-DropDownChoice-with-setRequired%28true%29-tf4515329.html#a12878901
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>