I´m currently working on an application in JSF 2.2 and RichFaces but I´m facing a little problem ... basically, I found myself in a situation where I need to generate a radio button (which I would like to generate using the "h:selectOneRadio" jsf tag) but where I need to apply different styles for each of the radio buttons that are generated with the "f:selectItem" tag. In my particular case, the style that I need to apply is an absolute position so that I can place each radio button in a custom position and not necessarilly in a row/column as it is provided by default.
The ideal would be to have something like this :
<h:selectOneRadio value="Red">
<f:selectItem style="position:absolute; left: 0ex; top:0ex;" itemValue="Red" itemLabel="Color1 - Red" />
<f:selectItem style="position:absolute; left: 20ex; top:20ex;" itemValue="Green" itemLabel="Color1 - Green" />
<f:selectItem style="position:absolute; left: 40ex;top:40ex;" itemValue="Blue" itemLabel="Color1 - Blue" />
</h:selectOneRadio>
Looking at how JSF treats this tag, I have found that it generates a table where (depending on your choice) places n rows/columns each one with one radio item ... but it does not give any workaround to apply a custom style for this particular row/column that should not affect the rest of the columns ...
I have tried wrapping the "f:selectItem" tag by a but it does not work ... Any ideas?
Thank you in advance !!