So, the other day, one of the users request to make changes to the way a particular dropdown is displayed. I used h:selectOneRadio for the radio buttons and for the dropdown options, I used the s:selectItem that has an arrayList of enums for values. The requested change was to customize those dropdown options so that some options are bolded whereas the rest are displayed normally.
It sounded as a decent request and didn't seem hard. However, I'm finding that it's hard to customize a dropdown choices that uses h:selectOneRadio. I can't just randomly customize s:selectItem, and f:selectItems is also very similar to s:selectItem. The only thing that is left to try is f:selectItem. I thought I could use f:selectItem because it doesn't take an arraylist like others. However, f:selectItem doesn't have 'style' option.
Therefore, I couldn't customize the dropdown list as I wanted. I'm wondering if there's a way out there that will make this customization feasible at all.
No comments:
Post a Comment