This article mainly introduces the problems encountered in the foreach loop, which is very good and has reference value, for more information about the problems encountered in the foreach loop, see this article.
1. when the list page uses "foreach loop", the data is not displayed. In this case, you need to check whether the first letter of the attribute in your object model is in uppercase. Remember not to use uppercase letters (when I am working on a project, the object model is created by someone else, and the first letter of the attribute is capitalized. As a result, the data on the last list page is not displayed. Later, I asked the teacher to change it to lower-case, which is instantly better ).
2. data cannot be stored in the Table: When the column name of the data table is not specified in the ing file, the column name of the data table must be the same as the attribute name (applied to the hibername operation database ).
3. When using foreach, the data content from other pages to this page is not displayed. In this case, the path to this page must be changed to the access path in the browser on other pages.
| Select All |
Sample Number |
Name of the inspected person |
Detected ID |
Hospital name |
Sample type |
Mobile phone |
Creation Time |
| |
$ {Hello. sampleNo} |
$ {Hello. name} |
$ {Hello. pId} |
$ {Hello. hospitalName} |
$ {Hello. sampleType} |
$ {Hello. cellPhone} |
$ {Hello. createTime} |