We are planning to develop an online examination in JSF. The exam contains 25 questions, there will be four answers (radio buttons) for each question. User can select one option against each question. Can anyone tell how to do it in JSF? is it possible to do it using data table? how to display the questions.
I think using datatable would not be ideal in this case.
Using datatable you could present your questions like this
where  represents a radio bottom.
The problem here is that each radio button is independent of each other as there seems to be no way to link these using <h:selectOneRadio> and <f:selectItem> as each selectItem will be in a different <h:column> sub tag of the <h:dataTable>. So they would not behave as a group of radio buttons, user would be able to select all four options at once.
I think the way you should proceed is to have a page for each question and a <h:selectOneRadio> with 4 <f:selectItem> tags with itemLabel mappings to the answer strings.