At line 29 changed 2 lines. |
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0//EN" |
"http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd"> |
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" |
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> |
At line 56 changed 2 lines. |
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0//EN" |
"http://www.opensymphony.com/xwork/xwork-validator-1.0.dtd"> |
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" |
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> |
At line 74 changed 1 line. |
To enable validation for the "savePerson" action, you'll need to uncomment the "validator" property we commented out earlier. Make sure the "savePerson" <action> in web/WEB-INF/classes/xwork.xml has the following XML: |
WebWork's validation interceptor is enabled by default, so you don't need to configure anything for validation to work. |
At line 76 removed 7 lines. |
[{Java2HtmlPlugin |
|
<interceptor-ref name="validationStack"/> |
}] |
|
As an FYI, the validationStack used in AppFuse is a bit different from the default one that WebWork ships with. More information can be found in [WebWork's JIRA|http://jira.opensymphony.com/browse/XW-228]. |
|
At line 85 changed 1 line. |
Now that you have Validation configured for this object, whenever an action has the "validationStack" interceptor, these rules will be applied. After saving all your files and deploying, validation should kick in when you try to save this form. To test, run __ant db-load deploy__, start Tomcat and go to [http://localhost:8080/appfuse/editPerson.html?id=1]. |
After saving all your files and deploying, validation should kick in when you try to save this form. To test, run __ant db-load deploy__, start Tomcat and go to [http://localhost:8080/appfuse/editPerson.html?id=1]. |
At line 243 changed 1 line. |
Finally, add the title and heading keys (personList.title and personList.heading) to web/WEB-INF/classes/ApplicationResources_en.properties. Open this file and add the following: |
Finally, add the title and heading keys (personList.title and personList.heading) to web/WEB-INF/classes/ApplicationResources.properties. Open this file and add the following: |
At line 331 changed 1 line. |
Where ''menu.viewPeople'' is an entry in web/WEB-INF/classes/ApplicationResources_en.properties. |
Where ''menu.viewPeople'' is an entry in web/WEB-INF/classes/ApplicationResources.properties. |
At line 340 changed 1 line. |
<Menu name="PeopleMenu" title="menu.viewPeople" forward="viewPeople"/> |
<Menu name="PeopleMenu" title="menu.viewPeople" page="/people.html"/> |