Alternative t: selectOneRadio layout = "spread"

I often don’t need tomahawk components, since jsf 2.0 provides excellent support for selectOneMenu and most of the other functions that I used them, but when it comes to the selectOneRadio element, I don’t know another provider with the layout = "spread" option. This is required from time to time to achieve the specific layout that I am being asked for.

I use Tomahawk specifically for this purpose, but recently discovered some serialization problems caused by this component during the transition to another resource. I was wondering if anyone found another provider with similar “advanced” functionality or did someone write / publish an alternative based on h: selectOneRadio?

+4
source share
1 answer

We also wanted to use the “distribution” option - in our case, for DDA compatibility (without using tables for the layout), but for political reasons we were not able to use Tomahawk. As a result, we created our own custom rendering for radio buttons and checkboxes.

It was not too difficult, it took several hours to get it to work the way we wanted it to. I am at home for a couple of days without access to the codebase, so I can not give you the exact code, but this is a pretty simple question about overriding encodeBegin() and decodeBegin() (or encodeEnd() and decodeEnd() depending on your usecase methods and writing html suitable for your application.

0
source

All Articles