4 Replies Latest reply on Feb 3, 2009 7:51 AM by Stijn Cremers

    error with filtering on datatable

    Stijn Cremers Novice

      When i type very fast in the filtering input field on the datatable, i get this exception:

      javax.ejb.ConcurrentAccessException: TX_IN_METHOD: wrong transaction


      This is the code of the datatable:

      <rich:dataTable
       value="#{returnCarrierBean.countryCarrierProfileList}"
       var="countryCarrierProfileList"
       rendered="#{not empty returnCarrierBean.countryCarrierProfileList}"
       reRender="carrierProfileDatascroller"
       rows="15"
       width="700px">
      
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column>
       #{msg.carrierCode}
       </rich:column>
       <rich:column>
       #{msg.name}
       </rich:column>
       <rich:column>
       #{msg.active}
       </rich:column>
       <rich:column>
       #{msg.contactName}
       </rich:column>
       <rich:column>
       #{msg.address}
       </rich:column>
       <rich:column>
       #{msg.city}
       </rich:column>
       <rich:column>
       #{msg.country}
       </rich:column>
       <rich:column>
        
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column filterBy="#{countryCarrierProfileList.carrierProfile.carrierCode}" filterEvent="onkeyup">
       #{countryCarrierProfileList.carrierProfile.carrierCode}
       </rich:column>
      
       <rich:column filterBy="#{countryCarrierProfileList.carrierProfile.carrierName}" filterEvent="onkeyup">
       #{countryCarrierProfileList.carrierProfile.carrierName}
       </rich:column>
      
       <rich:column filterBy="#{countryCarrierProfileList.carrierProfile.activeFlag}" filterEvent="onkeyup">
       #{countryCarrierProfileList.carrierProfile.activeFlag}
       </rich:column>
      
       <rich:column>
       #{countryCarrierProfileList.carrierProfile.contactName}
       </rich:column>
      
       <rich:column>
       #{countryCarrierProfileList.carrierProfile.address1}
       </rich:column>
      
       <rich:column>
       #{countryCarrierProfileList.carrierProfile.city}
       </rich:column>
      
       <rich:column>
       #{countryCarrierProfileList.countryDescription.description}
       </rich:column>
      
       <rich:column>
       ...
       </rich:column>
      
       <f:facet name="footer">
       <rich:datascroller id="carrierProfileDatascroller" renderIfSinglePage="false"></rich:datascroller>
       </f:facet>
      
       </rich:dataTable>