disable options in the List JSF 2

后端 未结 1 1543
梦毁少年i
梦毁少年i 2021-01-27 04:59

            

        
1条回答
  •  悲哀的现实
    2021-01-27 05:54

    This generates a HTML element. The specified behaviour is that the item is unselectable, not that the item is hidden. You seem to be expecting that the item is hidden. This is thus not true. If you don't want to show the item in the list at all, just prepare the #{bean.colors} list as such that the item is not present in the list.

    See also:

    • tag documentation - read the itemDisabled attribute description
    • disabled attribute in W3 HTML specification - nothing states that it's hidden

    0 讨论(0)
提交回复
热议问题