Disable row selection for a few rows only in a p:dataTable

前端 未结 4 990
夕颜
夕颜 2020-12-03 17:08

I would like to know if there is a way of disabling the radio-based row selection for a given set of rows in Primefaces, based on a bean property.

Example:



        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 17:55

    Since 4.0 version, Primefaces datatable comes with a disabledSelection property.

    
        
        
            
        
    
    

    Then, when foo.bar == 1 is true, checkbox will be disabled.

提交回复
热议问题