ExCella Reports を利用してExcelファイルを出力する、PrimeFacesのExporter実装 This library provides the implementation of PrimeFaces' Exporter using ExCella Reports.
- 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>
- 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>
- Set
type="excella"
to<p:dataExporter>
.<p:dataExporter type="excella" target="table" />
- Create backing bean provides exporter instance.
@Model public class Exporters { public Exporter<DataTable> getDataTableExporter() { return DataTableExcellaExporter.builder().build(); } }
- Set
exporter
attribute to<p:dataExporter>
.<p:dataExporter type="excella" target="table" exporter="#{exporters.dataTableExporter}" />
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 |
- 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
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
- Create GitHub Issue (https://github.com/maruTA-bis5/primefaces-excella-exporter/issues/new)
- or Start new Discussion (https://github.com/maruTA-bis5/primefaces-excella-exporter/discussions/new)
MIT