I have 5 radio buttons in my form, selecting one and proceeding takes me to a form that the user need to fill up. Now out of these 5, I have not yet finished 2 of the forms that these radio buttons take me. So I wanted to disable the radio buttons which donot have the forms ready.
How I solve it now: if a user selects one of these radio buttons that donot have a form ready, it says "Page under construction" but I want to disable them completely so that no one selects it.
If you're using
f:selectItems
, use theSelectItem
constructor taking thedisabled
argument.Or, if you're using
f:selectItem
, use theitemDisabled
attribute.