Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow displayLength option to use an integer value #292

Open
jchafik opened this issue Jul 29, 2015 · 0 comments
Open

Allow displayLength option to use an integer value #292

jchafik opened this issue Jul 29, 2015 · 0 comments

Comments

@jchafik
Copy link

jchafik commented Jul 29, 2015

displayLength currently only accepts BigDecimal when using an expression (at least in Thymeleaf). Since page size should only be a positive integer, it would make sense to allow integer values.

<table dt:table="true" dt:displayLength="${10}">
...
</table>

Returns the following NPE:

    Caused by: java.lang.NullPointerException
    at com.github.dandelion.datatables.thymeleaf.processor.attr.TableDisplayLengthAttrProcessor.doProcessAttribute(TableDisplayLengthAttrProcessor.java:70)
    at com.github.dandelion.datatables.thymeleaf.processor.AbstractTableAttrProcessor.processAttribute(AbstractTableAttrProcessor.java:70)
    at org.thymeleaf.processor.attr.AbstractAttrProcessor.doProcess(AbstractAttrProcessor.java:87)
    at org.thymeleaf.processor.AbstractProcessor.process(AbstractProcessor.java:212)
    ... 111 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants