Hi,

we've come across a problem of radio choice not selecting the default choice if the choice is null.

I've noticed this in RadioChoice class:

        @Override
        protected final void onComponentTagBody(final MarkupStream markupStream,
                        final ComponentTag openTag)
        {
                // Iterate through choices
                final List<T> choices = getChoices();

                // Buffer to hold generated body
final AppendingStringBuffer buffer = new AppendingStringBuffer((choices.size() + 1) * 70);

                // The selected value
                final String selected = getValue();
=========================================/\
                        is this correct? shouldn't it be rather
                        getChoiceRenderer().getIdValue(getModelObject())


-Matej

Reply via email to