Skip to content

maruTA-bis5/primefaces-excella-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrimeFaces ExCella Exporter

ExCella Reports を利用してExcelファイルを出力する、PrimeFacesのExporter実装 This library provides the implementation of PrimeFaces' Exporter using ExCella Reports.

build Maven Central Javadocs Quality Gate Status

Usage

  1. Add primefaces-excella-exporter and excella-reports to your project.
    <dependency>
      <groupId>net.bis5.excella</groupId>
      <artifactId>primefaces-excella-exporter</artifactId>
      <version>${primefaces-excella-exporter.version}</version>
    </dependency>
    <dependency>
      <groupId>org.bbreak.excella</groupId>
      <artifactId>excella-reports</artifactId>
      <version>${excella-reports.version}</version>
    </dependency>
  2. Add excella's repository
    <repositories>
      <repository>
        <id>excella.bbreak.org</id>
        <name>bBreak Systems Excella</name>
        <url>https://excella-core.github.io/maven2/</url>
      </repository>
    </repositories>
  3. Set type="excella" to <p:dataExporter>.
    <p:dataExporter
        type="excella"
        target="table" />

Legacy way (~3.x)

  1. Create backing bean provides exporter instance.
    @Model
    public class Exporters {
        public Exporter<DataTable> getDataTableExporter() {
            return DataTableExcellaExporter.builder().build();
        }
    }
  2. Set exporter attribute to <p:dataExporter>.
    <p:dataExporter
        type="excella"
        target="table"
        exporter="#{exporters.dataTableExporter}" />

Version matrix

primefaces-excella-exporter version Compatible PrimeFaces version
1.x 8.x
2.x 11.x
3.x 12.x
4.x 13.x
5.x 14.x

Development

  • build
    mvn clean package
    
  • test
    cd integration-test
    chmod 777 docker-compose/downloads
    HOST_IP=<docker-host-ip-addr> docker-compose up -d
    mvn clean verify
    

Contribution

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Contact

License

MIT