Вопрос

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