At line 28 changed 2 lines. |
** web/personForm.jsp (JSP file for viewing a single Person) |
** web/personList.jsp (JSP file for viewing a list of People) |
** web/personForm.xhtml (Facelets template for viewing a single Person) |
** web/personList.xhtml (Facelets template for viewing a list of People) |
At line 51 changed 1 line. |
* Copy personForm.jsp to web/personForm.jsp. Copy personList.jsp to web/personList.jsp. |
* Copy personForm.xhtml to web/personForm.xhtml. Copy personList.xhtml to web/personList.xhtml. |
At line 228 changed 1 line. |
<from-view-id>/personForm.jsp</from-view-id> |
<from-view-id>/personForm.xhtml</from-view-id> |
At line 231 changed 1 line. |
<to-view-id>/mainMenu.jsp</to-view-id> |
<to-view-id>/mainMenu.xhtml</to-view-id> |
At line 236 changed 1 line. |
<to-view-id>/mainMenu.jsp</to-view-id> |
<to-view-id>/mainMenu.xhtml</to-view-id> |
At line 274 changed 1 line. |
If you want to add a usability enhancement to your form, you can set the cursor to focus on the first field when the page loads. Simply add the following JavaScript at the bottom of your form (web/personForm.jsp): |
If you want to add a usability enhancement to your form, you can set the cursor to focus on the first field when the page loads. Simply add the following JavaScript at the bottom of your form (web/personForm.xhtml): |
At line 298 changed 1 line. |
<from-view-id>/mainMenu.jsp</from-view-id> |
<from-view-id>/mainMenu.xhtml</from-view-id> |
At line 301 changed 1 line. |
<to-view-id>/personForm.jsp</to-view-id> |
<to-view-id>/personForm.xhtml</to-view-id> |
At line 306 changed 1 line. |
Finally, to make this page more user friendly, you may want to add a message for your users at the top of the form, but this can easily be done by adding text (using <fmt:message>) at the top of the personForm.jsp page. |
Finally, to make this page more user friendly, you may want to add a message for your users at the top of the form, but this can easily be done by adding text (using <fmt:message>) at the top of the personForm.xhtml page. |