[ 
https://issues.apache.org/jira/browse/WICKET-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Kriesten reopened WICKET-531:
---------------------------------


The fix doesn't address handling consistency between form components (as Radio 
and Checkbox should behave imho).

Also, this way you can't set the Label, which leeds to FormComponentLabel only 
returns "RadioLabel" as label string for the Radio button!

This should be working:

Radio radio = new Radio( "radioelement", new Model( value ) );
radio.setLabel( new Model( label ) );
SimpleFormComponentLabel radiolabel = new SimpleFormComponentLabel( 
"radiolabel", radio );

Regards, --- Jan.


> FormComponentLabel and Radio
> ----------------------------
>
>                 Key: WICKET-531
>                 URL: https://issues.apache.org/jira/browse/WICKET-531
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.0-beta1
>         Environment: any
>            Reporter: Jan Kriesten
>            Assignee: Alastair Maw
>            Priority: Minor
>             Fix For: 1.3.0-beta2
>
>
> Since Radio extends WebMarkupContainer instead of FormComponent, it's not 
> possible to set FormComponentLabels for Radio-buttons.
> Since it's desireable to be able to click on the label to select a 
> radio-button, it would be nice to change this to reflect that Radio really is 
> a FormComponent.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to