0 Replies Latest reply on Nov 2, 2009 12:13 PM by fabdib

    Seam Excel...pageflow problem

      Hi to everyone,
      i'm using jboss seam 2.1, i've created a table with a command button for export some data in excel (with the excel api including in seam), this is part of the table definition:

      <s:div>
              <h:panelGrid columns="1" >
                      <rich:dataTable id="posasList"
                                  onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
                                  onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
                                  cellpadding="0" cellspacing="0" reRender="datascroller" rows="10"
                                  width="700" border="0" var="sripAttivita" value="#{sirpAttComuneList}"
                                  sortBy="#{sripAttivita.sirpAttivitaComune.acoAnnoRif}" sortMode="single"
                                  rendered="#{sirpAttComuneList.size > 0}">
      ... some column and
                            <rich:column style="width: 100px">
                                      <f:facet name="header">
                                          <h:outputText styleClass="tableHeader" value="Crea Excel"/>
                                      </f:facet>
                                      <h:commandButton id="creaExcelPosas" action="excelDatiPosasStrasa"
                                              alt="Crea Excel" title="Crea Excel" image="/img/excel.jpg" />
                              </rich:column>   

      In the page flow i've this action mapping with:

              <decision name="evalExcelExpAttivita" expression="#{modificaPosasStrasaHome.loadExcelData}">
            <transition name="posas" to="excelExpAttivitaPosas">
                     
            </transition>
            <transition name="strasa" to="excelExpAttivitaStrasa">
                     
            </transition>
            <transition name="nok" to="Acq_Dati_Rel" />
          </decision>
             
              <page name="excelExpAttivitaPosas" view-id="/xls/excelAttExportPosas.xhtml">
                      <redirect />
                      <!-- VOCI DI MENU -->
                     

              </page>
             
              <page name="excelExpAttivitaStrasa" view-id="/xls/excelAttExportStrasa.xhtml">
                  <redirect />
                      <!-- VOCI DI MENU -->
                     

              </page>

      The page excelAttExportPosas.xhtml and excelAttExportStrasa.xhtml are two page containing the excel tags
      The export works great but on the main page (the page where is the table) after i've click the button for excel export, every any butto i'm click, there always raise the excel export event, how i' can stop this event?

      Thanks, and sorry for my english,
      Fabio.