dandelion / dandelion-datatables

Dandelion component for DataTables
http://dandelion.github.io/components/datatables/
Other
110 stars 49 forks source link

NullPointerException using Thymeleaf Ajax views #229

Closed tduchateau closed 10 years ago

tduchateau commented 10 years ago

Issue by dgonsan from Saturday Jan 04, 2014 at 20:51 GMT


When using Thymeleaf Ajax Views is it possible to request only a fragment (or multiple fragments) of a page, that causes Thymeleaf to render an incomplete HTML. In this case if there are dandelion tags in the fragments the rendering fails with a NullPointerException when it tries to add the scripts and css to the response as there is no head or body to place them being generated from Thymeleaf.

There should be an option to add this tags inside a fragment instead of forcing them always in the body or head even if they are place in a wrong place from the HTML point of view.

tduchateau commented 10 years ago

Comment by tduchateau from Saturday Jan 04, 2014 at 20:55 GMT

Hi,

The issue won't exist any longer with Dandelion-Datatables 0.10.0. <script> and <link> tags will be directly injected into the HttpServletResponse thanks to a servlet filter.

Regards, Thibault

tduchateau commented 10 years ago

Comment by dgonsan from Saturday Jan 04, 2014 at 20:58 GMT

I will wait until 0.10.0 version then. Thank you for your quick response.