JSF h:dataTable creates single empty cell when no records

后端 未结 3 1015
无人及你
无人及你 2020-12-20 16:19

Is there any way to prevent an h:datatable from creating an empty row when the backing value is empty? More specifically: I have a collection of data to be displayed in 3 co

3条回答
  •  醉梦人生
    2020-12-20 16:52

    You might be able to avoid the column header disapearing if you instead wrap your method in an outputText tag

    Example:

      
        
        Address
        
           
        
    

    This way the column itself does not depend on the values

提交回复
热议问题