java.lang.NullPointerException at org.primefaces.component.datatable.feature.FilterFeature.filter

后端 未结 1 592
广开言路
广开言路 2020-12-12 01:19

I\'m trying create a filter to one dataTable. I want that filter works with all keywords contained in datatable.

I am following examples at: http://www.primefaces.or

1条回答
  •  -上瘾入骨i
    2020-12-12 01:48

    You must put your p:datatable inside h:form like this.

        
            
    
                
                    Lista de equipamentos
                    
                    
                    
    
                    
                    
                         
                        
                                
                
    
                
                    
                
    
            
        
    

    Also watchout that your equipamentoBean is in proper scope (mine: javax.faces.view.ViewScoped).

    OT: I would recommend you to "id" the f:form tag as this gives you the possibility to update it after a "create" form (outside this form!) has added a record:

        
        ....
            
        
    

    The id="master" is in my "master" template where all other views derive from:

        
            
            ...
            
        
    

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