JSF limitations using radio buttons?
843842May 31 2004 — edited Feb 11 2008Hello,
Looks like usage of JSF radio buttons is quite limited. When using "plain html",
you may place radio items anywhere in your page and they are logically grouped
together by having the same name attribute. As I understood JSF approach, it
forces logical group of radio items to be also grouped together in page layout:
selectItem components should be nested inside selectOneRadio. This makes
some layout designs impossible with "pure JSF".
One of the examples (not so rare in real life) is having column of radio buttons in
data table for choosing just ONE row. There are lots of simple and ellegant examples
on how to use checkboxes in data table (allowing to choose MANY rows), but I had failed
to find any radio buttons version. I have searched this forum too, and there are topics
with such or similar subject:
http://forum.java.sun.com/thread.jsp?forum=427&thread=452721
http://forum.java.sun.com/thread.jsp?forum=427&thread=486654
http://forum.java.sun.com/thread.jsp?forum=427&thread=521305
http://forum.java.sun.com/thread.jsp?forum=427&thread=430977
just to mention some
Still no JSF solution is provided, usually you are adviced to use checkboxes instead
or implement your own component to handle that kind of table design.
So is it really limitations of JSF standard components or am I missing something?