Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_cn
Articles_de
Articles_pt
Articles_zh
CreateActions
CreateActions_de
CreateActions_it
CreateActions_pt
CreateActions_zh
...and 1 more




JSPWiki v2.2.33

[RSS]


Hide Menu

JSFBeans


Difference between version 24 and version 21:

At line 26 changed 1 line.
* Execute __ant -Dobject.name=Person -Dappgen.type=pojo__ to generate a bunch of files in extras/appgen/build/gen. In fact, it'll generate all the files you need to complete this tutorial. However, let's just grab the ones you need.
* Execute __ant -Dobject.name=Person -Dappgen.type=pojo -Dapp.module=__ to generate a bunch of files in extras/appgen/build/gen. In fact, it'll generate all the files you need to complete this tutorial. However, let's just grab the ones you need.
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 69 added 1 line.
At line 74 added 1 line.
At line 85 changed 1 line.
assertEquals(bean.save(), "list");
assertEquals("list", bean.save());
At line 93 changed 1 line.
assertEquals(bean.edit(), "edit");
assertEquals("edit", bean.edit());
At line 101 changed 1 line.
assertEquals(bean.edit(), "edit");
assertEquals("edit", bean.edit());
At line 110 changed 1 line.
assertEquals(bean.save(), "edit");
assertEquals("edit", bean.save());
At line 119 changed 1 line.
assertEquals(bean.delete(), "list");
assertEquals("list", bean.delete());
At line 226 changed 1 line.
<from-view-id>/personForm.jsp</from-view-id>
<from-view-id>/personForm.xhtml</from-view-id>
At line 229 changed 1 line.
<to-view-id>/mainMenu.jsp</to-view-id>
<to-view-id>/mainMenu.xhtml</to-view-id>
At line 234 changed 1 line.
<to-view-id>/mainMenu.jsp</to-view-id>
<to-view-id>/mainMenu.xhtml</to-view-id>
At line 272 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 296 changed 1 line.
<from-view-id>/mainMenu.jsp</from-view-id>
<from-view-id>/mainMenu.xhtml</from-view-id>
At line 299 changed 1 line.
<to-view-id>/personForm.jsp</to-view-id>
<to-view-id>/personForm.xhtml</to-view-id>
At line 304 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 &lt;fmt:message&gt;) 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 &lt;fmt:message&gt;) at the top of the personForm.xhtml page.

Back to JSFBeans, or to the Page History.