2 Replies Latest reply on Aug 18, 2010 3:49 AM by Lucas Marti

    excelExporter and concurrent call to conversation

    Lucas Marti Newbie

      How to avoid concurrent call to conversation problem when using the excelExporter?



      I use the org.jboss.seam.excel.exporter.ExcelExporter to download data from a rich:dataTable. To trigger the download I use an a4j:commandButton. When a user clicks more than once, I get an concurrent call to conversation problem.


      - I tried to avoid this problem with a a4j:queue but since the excelExporter makes a redirect, the queue never gets a response and remains blocked after the first click.


      - i also tried to avoid it by opening a new conversation, but then org.jboss.seam.excel.exporter.ExcelExporter does not have the dataTable in context anymore.


      Does anyone have an idea how to solve this problem?


      Thank you


      Here is my code:





      <rich:dataTable id="myDataTableId" ... />
      ...
      <a4j:queue
         requestDelay="20"
         ignoreDupResponses="true" />
      ...                
      <a4j:commandButton
         id="myCommandButton"
         value="Excel export"
         action="#{excelExporter.export('myDataTableId')}" />