New dialect for DataTables4j

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

New dialect for DataTables4j

Thibault Duchateau
This post was updated on .
Hi !

I'm happy to announce that the latest release of DataTables4j embeds a brand new Thymeleaf dialect !

The dialect introduces several attribute processors (and internal element ones) that share the same base that the JSP taglib. At the moment, not all "JSP" options are supported but you can already use basic ones : sorting, paging, filtering, exporting, theming, ...
More will be added over time;

Feel free to share any comments !

Some pointers for those who are interested :
Doc : http://datatables4j.github.com/docs
Main demo : http://demo.datatables4j.cloudbees.net/
Thymeleaf demo : http://demo.thymeleaf.datatables4j.cloudbees.net/

Regards,
Thibault
Reply | Threaded
Open this post in threaded view
|

Re: New dialect for DataTables4j

blandger
I like it, worth to try to integrate, especially with bootstrap theme and paging.
Is something more (except described in install) should be included for it?

1.
One issue I found.
If I go from page:
Live DataTables4j Thymeleaf demo
http://demo.thymeleaf.datatables4j.cloudbees.net/
to
Plugins page
http://demo.thymeleaf.datatables4j.cloudbees.net/@%7B/plugins/home%7D
it returns:
HTTP Status 404 -

2.
Second issue I didn't get:
By default, the Javascript libraries are not embedded in DataTables4j. So ensure you declared somewhere in your pages those script and link tags :
Where should I take them from ? From file?
Just add the following dependency :....

3. How is pagination handled? Is there example for it? I mean how to mark up it on page and how to use/handle on servers side? I have Spring MVC, it can handle that stuff, but I'd like to see more details about that.

Really interesting component.
Reply | Threaded
Open this post in threaded view
|

Re: New dialect for DataTables4j

danielfernandez
Administrator
In reply to this post by Thibault Duchateau

Great job, Thibault! :-)

I've added it to the ecosystem page (http://www.thymeleaf.org/ecosystem.html), and also a news item at the home page.

Thanks!

Daniel.
Reply | Threaded
Open this post in threaded view
|

Re: New dialect for DataTables4j

Thibault Duchateau
In reply to this post by blandger
Hi !

Thanks for your encouragements!

About your comments/questions :

1) The demo is being redeployed to fix it. Thanks for that.

2) DataTables4j doesn't manage the Javascript librairies inclusion in your pages. This means you have to do it by yourself, as you are used to do it in your existing web application.
However, both in JSP taglib and in Thymeleaf dialect, you have a cdn attribute which allows to generate DataTables script and link tags, using the latest version hosted on Microsoft's CDN.
You can take a look at the usage here.

3) At the moment, pagination is totally delegated to DataTables, that is to say, fully client-side. More server-side features will be added over the time, like pagination and AJAX source above all. A basic example can be seen here !

I forgot to mention something's important : snippets and most of the docs, for both JSP taglib and Thymeleaf dialect are centralized on the main demo, mainly for maintenance purposes. Nevertheless, feel free to browse the sources of the Thymeleaf demo anyway :-)

Thanks !



Reply | Threaded
Open this post in threaded view
|

Re: New dialect for DataTables4j

Thibault Duchateau
In reply to this post by danielfernandez
Thanks Daniel ! :-)