0

I'm using Spring Thymeleaf for templating. I want to use the nested modal varabiles, but when I use it in nested form. I'm getting the follwing error,

th:text=${${FIELD_NAME_1}}

SpelParseException: EL1041E: After parsing a valid expression, there is still more data in the expression: 'lcurly({)'

This is my template snippet,

                                        <!-- 
                                        <td th:href="@{'${URL}' + ${ID_FIELD}}"
th:text="${FIELD_NAME_1}">Tiger Nixon</td>
 -->
                                        <!-- <td th:text="${__${FIELD_NAME_1}__}">Tiger Nixon</td> -->
                                        <td th:text="${(country.countryName != null) ? ${country.countryName} : "nullvalue" }">Tiger Nixon</td> 
                                        <td th:text="${__${FIELD_NAME_2}__}">Lorem Ipsum is simply
                                            dummy text of the printing and type setting industry.</td>
                                        <td>Code not added</td>
                                        <td class="text-center"><span
                                            class="icon-edit float-left actionCircle"
                                            style="padding: 10px"></span>
                                            <div class="dotMenus mt-2 float-left">
                                                <span class="icon-Dots actionCircle"
                                                    style="padding: 10px 10px;"></span>
                                                <div class="dotMoreMenu mt-3">
                                                    <ul>
                                                        <li><a href="#"> <span class="icon-Delete mr-2"></span>Delete
                                                        </a></li>
                                                        <li><a href="#"> <i class="fas fa-lock mr-2"></i>Option
                                                                01
                                                        </a></li>
                                                        <li><a href="#"> <i class="fas fa-lock mr-2"></i>Option
                                                                02
                                                        </a></li>
                                                    </ul>
                                                </div>
                                            </div></td>
                                        <td></td>
                                    </tr>

These are my modal Varaibles, modalAndView.addObject("COUNTRYS_DTOS", countrysFetchByPageResponseDto.getCountrys()); modalAndView.addObject("ITEM_DTO", "country"); modalAndView.addObject("ITEM_DTOS", "COUNTRY_DTOS"); modalAndView.addObject("FIELD_NAME_1", "country.countryName"); modalAndView.addObject("FIELD_NAME_2", "country.description"); But still it is generating a blank page.

vvekselva
  • 803
  • 3
  • 17
  • 34

0 Answers0