I think is for the filter:

           if ((_lastPage == null) || (_lastStartRow != startRow) ||
(_lastPageSize != pageSize)){
                   _log.debug("**Fetch: required -> fetching...");
                   obligar = false;
                   _lastPage = fetchPage(startRow, pageSize);
                   _lastStartRow = startRow;
                   _lastPageSize = pageSize;
           }else{
                   _log.debug("**Fetch: not required (already fetched)!");
           }
           return _lastPage;



I need that when an action like add, delete or edit occurs always enter to
this if, what do you think is the best way to do this, add another condition
to the if, lets say a boolen condition? that after the method that do the
delete/add/edit action this boolen be set to true, if so where this boolean
variable have to be, and where it have to be set, i´m thinking in something
like this:

backing_bean
           call delete method
           set some variable to true
           call the fetch method
PagedListDataModel
           add code to the if: if(..... || valiable=true)
          put the variable again in false

What I don´t have clear is where the boolean variable have to be define, and
where to set his value.

Reply via email to