ValidationAndListSpring |
|
Your trail: |
Difference between
version 26
and
version 25:
At line 312 changed 1 line. |
There should already be a personList.jsp in the ''web/pages'' folder of your project. If it's not there, you can use the ViewGen Tool to create it. To do this from the command-line, navigate to extras/viewgen and run __ant -Dform.name=Person__. This will generate a personList.jsp in extras/viewgen/build. |
Open the personList.jsp file in the ''web/pages'' folder of your project. One thing you'll probably want to change is the plural form of the items you're listing. The generated name in this example is "persons" and it should probably be people. At or near line 31, you should have the following line: |
At line 314 removed 14 lines. |
Once personList.jsp exists in ''web/pages'', open it for editing. |
|
The template we used to create this JSP has the column for the id property hard-coded, so XDoclet adds it twice. We need to remove this from personList.jsp - so delete the following from this file: |
|
[{Java2HtmlPlugin |
|
<display:column property="id" sort="true" headerClass="sortable" |
titleKey="person.id"/> |
}] |
|
;:''If anyone knows of a way to modify the extras/viewgen/src/List_jsp.xdt to not include this column tag, please let me know.'' |
|
Another thing you'll probably want to change is the plural form of the items you're listing. The generated name in this example is "persons" and it should probably be people. At or near line 31, you should have the following line: |
|
At line 462 removed 2 lines. |
|
If you'd like, you [can download the files created in this tutorial|https://appfuse.dev.java.net/files/documents/1397/7487/appfuse-tutorial-spring-1.6.zip]. |
Back to ValidationAndListSpring,
or to the Page History.
|