javascript – Thymeleaf preprocessed expression cannot have brankets appended-ThrowExceptions

Exception or error:

No matter whether I append () or () at the end of the preprocessed expression, Thymeleaf doesn’t substitute the preprocessed expression with its value. Strange enough, But it looks Ok the preprocessed expression append “aa”

Here is the html:

<* href="javascript:void(0)" class="easyui-linkbutton" th:onclick="submit__${container.name}\__()" style="width:80px">Submit</*>
<* href="javascript:void(0)" class="easyui-linkbutton" th:onclick="submit__${container.name}__aa" style="width:80px">Clear</*>

Here is the html source after Thymeleaf transformed.

<* href="javascript:void(0)" class="easyui-linkbutton" onclick="submit__${container.name}__()" style="width:80px">Submit<*/>
<* href="javascript:void(0)" class="easyui-linkbutton" onclick="submitformaa" style="width:80px">Clear</*>

Please help me out of this as it drives me to the wall. Thanks

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *