CreateActions |
|
| Your trail: |
Difference between
version 98
and
version 97:
| At line 361 removed 1 line. |
| Now let's clean up the generated personForm.jsp by making the "id" property a hidden field. Remove the following code block from web/pages/personForm.jsp: |
| At line 363 changed 1 line. |
| [{Java2HtmlPlugin |
| Now let's clean up the generated personForm.jsp. Change the ''action'' of the <html:form> to be "savePerson" so validation will be turned on when saving. Also, change the ''focus'' attribute from focus="" to focus="firstName" so the cursor will be in the firstName field when the page loads (this is done with JavaScript). |
| At line 365 removed 20 lines. |
| <tr> |
| <th> |
| <appfuse:label key="personForm.id"/> |
| </th> |
| <td> |
| <html:text property="id" styleId="id"/> |
| <html:errors property="id"/> |
| </td> |
| </tr> |
| }] |
|
| And add the following before the <table> tag: |
|
| [{Java2HtmlPlugin |
|
| <html:hidden property="id"/> |
| }] |
|
| You should change the ''action'' of the <html:form> to be "savePerson" so validation will be turned on when saving. Also, change the ''focus'' attribute from focus="" to focus="firstName" so the cursor will be in the firstName field when the page loads (this is done with JavaScript). |
|
Back to CreateActions,
or to the Page History.
|