1 Reply Latest reply on Jun 19, 2009 4:21 PM by Prathamesh Gaddam

    Problem with ExcelExport!

    Prathamesh Gaddam Novice
      Dear Team,

      Towards http://seamframework.org/Community/RichdatatableToExcelExportIsEasyButIGetError#comment49459 tried to export the rich:dataTable contents.

      However, on button-action it throws:

      Caused by: javax.el.PropertyNotFoundException: /TimesheetsList.xhtml @216,79 action="#{excelExporter.export('timesheetsListForm:timesheetsList')}": Target Unreachable, identifier 'excelExporter' resolved to null

      Here are the steps followed and errors ocured:
      1. web.xml: modifed as per above post
      2. component.xml: problem to add <excel:document-store use-extensions="true"/> OR <document:document-store use-extensions="true"/> [Deployment failed] So only added name space
      3. jboss-web.xml:
          <class-loading java2ClassLoadingCompliance="false">
              <loader-repository>
                  seam.jboss.org:loader=Portal
                  <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                  seam.jboss.org:loader=seam-excel
                  <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
              </loader-repository>
          </class-loading>
      4. xyz.xhtml:
      <a:form id="timesheetsListForm">
      <rich:dataTable id="timesheetsList"
      .
      .
      .

                <h:commandButton id="export_top" type="submit"
                                     styleClass="submit_button" 
                                     value="Export to Excel"      
                                     action="#{ExcelExporter.export('timesheetsListForm:timesheetsList')}"/>
                </a:form>


      Used:
      JBOSS server 4.2.1 GA
      Seam 2.0.1
      Seam-excel.2.1.0GA [as other jar lik was not available]
      richfaces3.3.1

      Please assist as what am I missing?

      Thank you in advance!
        • 1. Re: Problem with ExcelExport!
          Prathamesh Gaddam Novice
          Hi,

          Worked successfully! However we need to switch completely to Seam 2.1.2 GA, and Richfaces.3.3.1 + JBosss 4.2.GA.

          This site will be helpful[worked with manual approach] for migration from Seam.2.0.2SP to Seam.2.1.2: http://code.google.com/p/seaminaction/wiki/Seam21Migration

          Further if you are using 'Identity' for login userrname and password you need to modify to 'Credentials'.

          Good luck!