You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking into adding Material Design Bootstrap (mdb) to a project that uses displaytag. I want to add datatable functionality to existing displaytag tables. In order to do that, I need to add data attributes such as data-mdb-datatable-init and others to the rendered table. The problem is that when I try to naively add that attribute to the display:table tag, I get an error message:
org.apache.jasper.JasperException: /jsp/styleguide/styleGuideBootstrap.jsp (line: [926], column: [45]) equal symbol expected
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:299)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:99)
I've also tried adding ="" at the end of that data attribute, but that doesn't work either:
org.apache.jasper.JasperException: /jsp/styleguide/styleGuideBootstrap.jsp (line: [926], column: [6]) Attribute [data-mdb-datatable-init] invalid for tag [table] according to TLD
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:299)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1287)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:900)
Is there any way to add html data attributes to displaytag elements, or will I have to make a choice between displaytag tables and material design datatables?
The text was updated successfully, but these errors were encountered:
@ikannak Can you show the code you are adding that produces the error? Have you tried to find an answer on stack overflow? I'm only in maintain mode with this project and only have one use case I care about. If you need new support item that doesn't exist currently to solve your case, it would require you to create a pull request. I'm not familiar enough this this any longer to add much help for issues thus stack overflow is probably your best option.
I'm looking into adding Material Design Bootstrap (mdb) to a project that uses displaytag. I want to add datatable functionality to existing displaytag tables. In order to do that, I need to add data attributes such as
data-mdb-datatable-init
and others to the rendered table. The problem is that when I try to naively add that attribute to the display:table tag, I get an error message:I've also tried adding
=""
at the end of that data attribute, but that doesn't work either:Is there any way to add html data attributes to displaytag elements, or will I have to make a choice between displaytag tables and material design datatables?
The text was updated successfully, but these errors were encountered: