Question

I want something with design like many checkboxes and user must select only one checkbox. There is h:selectManyCheckbox, but thre isn't h:selectOneCheckbox. I also know to do it with h:selectOneRadio, but it shows all radio buttons in one line, although I write <br/> between <f:selectItem>.

How can I do it in JSF 2.0?

Was it helpful?

Solution

You can use h:selectOneRadio with layout attribute set to pageDirection in order to render the radio buttons vertically.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top