Getting Exception evaluating SpringEL expression while using <td th:text="${account.ACNECHO__SyncTest__c}">SyncTest</td>

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

Getting Exception evaluating SpringEL expression while using <td th:text="${account.ACNECHO__SyncTest__c}">SyncTest</td>

  getting below exception:

: [THYMELEAF][http-nio-22594-exec-5] Exception processing template "accounts": Exception evaluating SpringEL expression: "account.ACNECHOSync_Testc" (template: "accounts" - line 22, col 21)

During Parsing __ is not getting processed ....what need to do to use __ in variable to avoid Exception in processing ...please suggest.
sudhir gupta
I have defined one variable Named as below:
public class Account {
    private String ACNECHO__SyncTest__c;
       public String getACNECHO__SyncTest__c() {
                return ACNECHO__SyncTest__c;
        }
        public void setACNECHO__SyncTest__c(String aCNECHO__SyncTest__c) {
                ACNECHO__SyncTest__c = aCNECHO__SyncTest__c;
        }

This variable having 2 __ in its name, when using it in the html file as below:
SyncTest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Getting Exception evaluating SpringEL expression while using <td th:text="${account.ACNECHO__SyncTest__c}">SyncTest</td>

Metroids
From the docs:  "The preprocessing String __ can be escaped in attributes using \_\_."

<td th:text="${account.ACNECHO\_\_SyncTest\_\_c}">SyncTest</td>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Getting Exception evaluating SpringEL expression while using <td th:text="${account.ACNECHO__SyncTest__c}">SyncTest</td>

sudhir gupta
Thanks It works
Loading...