Play-DataTables

A PlayFramework abstraction to parse queries from JavaScript library DataTables

License

License

Categories

Categories

Data Jackson JSON
GroupId

GroupId

com.jackson42.play
ArtifactId

ArtifactId

play-datatables
Last Version

Last Version

21.04u1
Release Date

Release Date

Type

Type

jar
Description

Description

Play-DataTables
A PlayFramework abstraction to parse queries from JavaScript library DataTables
Project URL

Project URL

https://github.com/PierreAdam/play-datatables
Source Code Management

Source Code Management

https://github.com/PierreAdam/play-datatables/tree/master

Download play-datatables

How to add to project

<!-- https://jarcasting.com/artifacts/com.jackson42.play/play-datatables/ -->
<dependency>
    <groupId>com.jackson42.play</groupId>
    <artifactId>play-datatables</artifactId>
    <version>21.04u1</version>
</dependency>
// https://jarcasting.com/artifacts/com.jackson42.play/play-datatables/
implementation 'com.jackson42.play:play-datatables:21.04u1'
// https://jarcasting.com/artifacts/com.jackson42.play/play-datatables/
implementation ("com.jackson42.play:play-datatables:21.04u1")
'com.jackson42.play:play-datatables:jar:21.04u1'
<dependency org="com.jackson42.play" name="play-datatables" rev="21.04u1">
  <artifact name="play-datatables" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.jackson42.play', module='play-datatables', version='21.04u1')
)
libraryDependencies += "com.jackson42.play" % "play-datatables" % "21.04u1"
[com.jackson42.play/play-datatables "21.04u1"]

Dependencies

provided (2)

Group / Artifact Type Version
com.typesafe.play : play-java_2.12 jar 2.8.7
com.typesafe.play : play-java-forms_2.12 jar 2.8.7

test (4)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.7.1
org.junit.jupiter : junit-jupiter-engine jar 5.7.1
ch.qos.logback : logback-classic jar 1.2.3
com.github.javafaker : javafaker jar 1.0.2

Project Modules

There are no modules declared in this project.

Play-DataTables

Latest release Codacy Badge Code Climate maintainability Codecov Snyk Vulnerabilities JDK Build Status GitHub license

Play-DataTables is a library for play framework that allows you to easily integrate DataTables in your PlayFramework project.

This library is providing an abstraction for the DataTables requests. It is not recommended to directly utilize this library as it's the base for other libraries that implements some data providers.

List of the current data providers :


Build the library and local deployment

$> mvn compile
$> mvn package
$> mvn install

Install or deploy

To install in your local repository.

$> mvn install

To deploy to a remote repository.

$> mvn verify
$> mvn deploy -P release

How to import the library

With Sbt

libraryDependencies += "com.jackson42.play" % "play-datatables" % "21.04u1"

With Maven

<dependency>
    <groupId>com.jackson42.play</groupId>
    <artifactId>play-datatables</artifactId>
    <version>21.04u1</version>
</dependency>

Implementing a data provider for Play-DataTables

Example of implementation is available in the tests. For a more concrete example, take a look at play-ebean-datatables

Versions

Library Version Play Version Tested DataTables Version
21.04u1 2.8.x 1.10.x
21.04 2.8.x 1.10.x
21.03 2.8.x 1.10.x

Changelog

21.04u1

  • Patch NPE when a value is at null in the entity.

21.04

  • Add a new concept of converters that allow to have a custom object being displayed properly by Play DataTables.
  • Refactoring of some complicated part of the code.
  • Compilation is now made to be done with Java 11 but compiled for Java 1.8.

License

This project is released under terms of the MIT license.

Versions

Version
21.04u1
21.04
21.03