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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top