1 Reply Latest reply on Feb 8, 2010 2:11 PM by idyoshin

    Removing an entity from the paginated view

    josdaniel

      I have a paginated list page (based on EntityQuery interface) and I have set the maxResults to 10. Assuming, I display 10 users initially and later on add another user. I will have to navigate to the Next page to view the 11th entry. If I delete the last entry, the current pagination logic seems to be showing the last page, but the resultCount mentions there are 10 entries.


      What should I do to get this working properly, I would have expected the list to render the 1st page with 10 entries . What am I missing here?

        • 1. Re: Removing an entity from the paginated view
          idyoshin

          for similar task I've added observer for event org.jboss.seam.afterTransactionSuccess.MyEntityName to the entityQuery and listDataModel, in which I clear wrapped data model, so during the render phase - the new query executed, returning first 10 rows.



          Regards,


          Ilya Dyoshin