Could not parse as assignation sequence: "data-loading-text=Loading..."

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

Could not parse as assignation sequence: "data-loading-text=Loading..."

jason
Hi,

Hope you can help me about this issue. I'm getting this error message:

Could not parse as assignation sequence: "data-loading-text=Loading...,data-complete-text=${#dates.format(report.startDateTime, 'MM-dd-yyyy HH:mm:ss')}"

when I try to implement Twitter's bootstrap's button plugin. I'm trying to set the data-loading-text and data-complete-text attributes through the th:attr.

<button th:data=${report.id}" data-toggle="modal button" class="btn btn-primary" th:id="${report.id}"
th:text="${dates.format(report.startDateTime, 'MM-dd-yyyy HH:mm:ss)}" th:attr="data-loading-text=Loading...,data-complete-text=${#dates.format(report.startDateTime, 'MM-dd-yyyy HH:mm:ss')}"/>

Did I code it wrong? Also, any chance th:data-complete-text and th:data-loading-text will be included in the future? I know this is not really an important feature but a nice to have.

Thank you for creating this wonderful java library. Really works well with Spring MVC.

Jason
Reply | Threaded
Open this post in threaded view
|

Re: Could not parse as assignation sequence: "data-loading-text=Loading..."

Zemi
Administrator
You have to enclose the "Loading..." text into single quotes.
Reply | Threaded
Open this post in threaded view
|

Re: Could not parse as assignation sequence: "data-loading-text=Loading..."

jason
Thanks for pointing out the oversight on my part. It's working now.