Looks like a bug to me...
Michael Heinen schrieb:
Sorry, I don’t want to push my question
but does anybody know whether this is a bug or whether I do something wrong?
------------------------------------------------------------------------
*From:* Michael Heinen
*Sent:* Freitag, 17. Februar 2006 18:00
*To:* 'MyFaces Discussion'
*Subject:* t:selectOneRadio has no preselection
Hi all,
I have trouble with the t:selectOneRadio. The items are not preselected
anymore.
They are neither preselected when I enter the page nor after submits
(with both: immediate = false or true)
When I remove layout="spread" and the two t:radio items, everything
works fine!
Here is my snipplet:
<h:panelGroup>
<t:selectOneRadio id="draft"
value="#{DynaAnnoControllerBean.document.datafield['draft']}"
layout="spread">
<f:selectItem itemLabel="Ja"
itemValue="true"/>
<f:selectItem itemLabel="Nein"
itemValue="false"/>
</t:selectOneRadio>
<t:radio for="draft" index="0" />
<t:radio for="draft" index="1" />
...
</h:panelGroup>
Michael