You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Daniel Kröger <kr...@disy.net> on 2007/10/26 16:01:33 UTC
AjaxFormChoiceComponentUpdatingBehavior not working when RadioChoice prefix and suffix are set
Hi all,
the onUpdate() method of AjaxFormChoiceComponentUpdatingBehavior added to a
RadioChoice component doesn't get called when the rendered radio buttons are
nested inside another HTML tag through RadioChoice.setPrefix() and
RadioChoice.setSuffix(). I think the reason is that the corrensponding
JavaScript seems to look only for direct children of the HTML element which
is mapped to the RadioChoice component.
Example:
RadioChoice choice = new RadioChoice(...);
choice.setPrefix("<p>");
choice.setSuffix("</p>");
choice.add(new AjaxFormChoiceComponentUpdatingBehavior() { ... });
Is this behaviour intended or is it a bug?
Best regards
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxFormChoiceComponentUpdatingBehavior not working when RadioChoice prefix and suffix are set
Posted by Johan Compagner <jc...@gmail.com>.
yes this is know behavior...
Send in an patch :)
johan
On 10/26/07, Daniel Kröger <kr...@disy.net> wrote:
>
> Hi all,
>
> the onUpdate() method of AjaxFormChoiceComponentUpdatingBehavior added to
> a
> RadioChoice component doesn't get called when the rendered radio buttons
> are
> nested inside another HTML tag through RadioChoice.setPrefix() and
> RadioChoice.setSuffix(). I think the reason is that the corrensponding
> JavaScript seems to look only for direct children of the HTML element
> which
> is mapped to the RadioChoice component.
>
> Example:
>
> RadioChoice choice = new RadioChoice(...);
> choice.setPrefix("<p>");
> choice.setSuffix("</p>");
> choice.add(new AjaxFormChoiceComponentUpdatingBehavior() { ... });
>
> Is this behaviour intended or is it a bug?
>
> Best regards
> Daniel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>