It should contain the value of rowItem[0] or null if nothing is selected.
Have your tried it with the latest nightly?
2005/9/28, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> First of all this works, but the Problem is, that when I am doing like this:
> <h:column>
> <t:selectOneRadio id="selectRadio"
> forceId="true" forceIdIndex="false"
> value="#{searchResultDto.paId}">
> <f:selectItem itemValue="#{rowItem[0]}"
> itemLabel="" />
> </t:selectOneRadio>
>
> </h:column>
>
> and when I press a Button with a MethodBinding behind, the
> searchResultDto.paId has the result 0 (not null)
> When I am doing the whole thing with a Button in each row and have a
> updateActionListener then the searchResultDto.paId is like it should be...
>
> What is wrong here?
>
> Regards, Andy
>
> -----Ursprüngliche Nachricht-----
> Von: Mathias Brökelmann [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 28. September 2005 10:41
> An: MyFaces Discussion
> Betreff: Re: Master-Detail with SelectOneRadioButtons
>
>
> try this one:
>
> <h:dataTable var="row" value="#{data.rows}">
> <h:column>
> <t:selectOneRadio id="selectRadio" forceId="true" forceIdIndex="false"
> value="#{data.selectedRowId}">
> <f:selectItem itemValue="#{row.id}" itemLabel="" />
> </t:selectOneRadio>
> </h:column>
> </h:dataTable>
>
> you have to use forceId="true" forceIdIndex="false" and provide an id
> for the selectOneRadio
>
> Please note: There could be bug with this in the current release
> 1.1.0. Try using the latest nightly if you have problems with it.
>
> 2005/9/28, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> >
> >
> > I'm using a datatable to display a Database Query.
> > While I'm iterating through the list, there should be an SelectOneReadio
> > Component in each row.
> > The user then should have the possibility to click on the SelectOneRadio
> > Buttons to select one of the datatable entries for a detailed display
> > (therefore he must then click the Button ShowDetails)
> >
> > The problem now is, that I can click every RadioButton in the list, although
> > it should be possible to click only one.
> > In old plain html you had to give the radio Buttons the same "NAME"
> > Attribute. But in JSF there is not such a attribute.
> >
> > How can I do that to implement a Master-Detail Display for my entry.
> > I know, that I can display a "ShowDetailButton" for every entry in the list,
> > but I actually don't want that.
> >
> > That you know, what I mean, here a screenshoot.
> >
> >
> >
> > Thx for help
> > Regards,
> > Andy
>
>
> --
> Mathias
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> your system manager.
>
> This footnote also confirms that this email message has been swept
> for the presence of computer viruses.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
--
Mathias