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 102 changed 1 line. |
assertEquals(action.edit(), "success"); |
assertEquals("success", action.edit()); |
At line 116 changed 2 lines. |
assertEquals(action.save(), "input"); |
assertEquals(action.getPerson().getLastName(), "Updated Last Name"); |
assertEquals("input", action.save()); |
assertEquals("Updated Last Name", action.getPerson().getLastName()); |
At line 130 changed 1 line. |
assertEquals(action.delete(), "success"); |
assertEquals("success", action.delete()); |
At line 232 changed 1 line. |
<bean id="personAction" class="org.appfuse.webapp.action.PersonAction" singleton="false"> |
<bean id="personAction" class="org.appfuse.webapp.action.PersonAction" scope="prototype"> |
At line 282 removed 15 lines. |
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: |
|
[{Java2HtmlPlugin |
|
<ww:textfield label="%{getText('person.id')}" name="person.id" |
value="%{person.id}" required="true"/> |
}] |
|
And add the following before the <table> tag: |
|
[{Java2HtmlPlugin |
|
<ww:hidden name="person.id" value="%{person.id}"/> |
}] |
|
At line 303 changed 1 line. |
Now if you execute __ant db-load deploy__, start Tomcat and point your browser to [http://localhost:8080/appfuse/editPerson.html?id=1], you should see something like this: |
Now if you execute __ant db-load deploy__, start Tomcat and point your browser to [http://localhost:8080/appfuse/editPerson.html?id=1], you should see something like this, with focus given to the first field in the form. |