Primefaces Inline DataTable Delete functionality

前端 未结 1 396
广开言路
广开言路 2020-12-12 05:07

I\'m using primefaces inline editing datatable.which consists of primefaces RowEditor and a CommandButton to delete the record.My Problem is when i deleted any record from t

1条回答
  •  囚心锁ツ
    2020-12-12 06:05

    There are a lot of Primefaces bugs logged on the component, so I am not going to search through all of them.

    I do know however that there is an open bug as of Primefaces 2.2.1 stating that components within a row of a will not correctly update (refresh) the appropriate values within the dataTable. This problem MAY be fixed in Primefaces 3.0. If you are interested you can search the known bugs here.

    Fortunately I have figured out a workaround for this. You need to perform an asynchronous operation from a component OUTSIDE of the and make sure that component sets the id of the dataTable in its update attribute.

    
      
      
        
          
        
      
    
    

    And in a javascript:

    function javascriptFunction() {
      updateButton.jq.click();
    }
    

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