Kalpana,

I suspect the use of "forceId" and "forceIdIndex" is the source of the problem. Unless their is a reason you are using them, then I would set both to false, otherwise set both to true.

** From the TLD http://myfaces.apache.org/tomahawk/tlddoc/index.html
forceIdIndex  If false, this component will not append a '[n]' suffix
              (where 'n' is the row index) to components that are
              contained within a "list." This value will be true by
              default and the value will be ignored if the value of
              forceId is false (or not specified.)
Paul Spencer


kalpana wrote:
Hi,

My requirement is to display radio buttons in a datatable. On selecting the
radio button and clicking on next button the selected rows values should be
displayed in the next page.

I tried using the selectOneRadio component of Tomahawk.
Following is the snippet of code i have used

<t:selectOneRadio id="select" forceId="true" forceIdIndex="false"
value="#{SourceInputController.select}" immediate="true"
valueChangeListener="#{SourceInputController.selectSourceInputRequest}">
<f:selectItems value="#{SourceInputController.selectList}" />
</t:selectOneRadio>
This code displays radio buttons with the same id. The issue is on load of
the page the last radio button is selected by default. When i click the next
button only the last row values displays irrespective of the selection i do.
Is there any possible to get rid of this issue.

Thanks in advance for the help.

Kalpana

Reply via email to