I followed following post to do it:
webpage link It works fine.
Now, I want to do something one more step. When I click one radio button but not click on submit button, this page will be refreshed and portion of this page be updated. How can I improve this example and get it works for my purpose? Thanks in advance.
Joined: Jul 09, 2008
I'd better copy whole post content which I mentioned to here:
h:selectOneRadio and h:dataTable
This tips explains how to use the h:selectOneRadio tag inside h:dataTable iteration tag. Using h:selectOneRadio is not straight forward since JSF doesn't provide easy mechanism for toggling the radio button selectios. Programmer has to write the manual script code to toggle the radio selections. If you are looking for the use of check boxs inside h:dataTable, please read our other tips on How to use h:selectBooleanCheckBox within h:dataTable. But using radion button is some what tedious work compare to the check box. The following programs demonstrates how to use the radio button within h:dataTable.