XDocletIndexedProperties |
|
Your trail: |
Difference between
current version
and
version 3:
At line 3 changed 1 line. |
* Add the following code to the bottom of your struts_form.xdt file. NOTE: You will need Velocity JARs in your classpath for this modified template to work. |
__Step 1:__ Add the following code to the bottom of your struts_form.xdt file. NOTE: You will need Velocity JARs in your classpath for this modified template to work. |
At line 61 changed 1 line. |
* For the generated Forms that have indexed properties (i.e. those with Hibernate many-to-one associations), add an attribute to the @struts.form tag: indexedProperties="true". If you name your Lists as plural forms of your Objects, everything should work fine. For instance, if you have a list of User objects, your List should be named "users" with appropriate getters and setters: |
__Step 2:__ For the generated Forms that have indexed properties (i.e. those with Hibernate many-to-one associations), add an attribute to the @struts.form tag: indexedProperties="true". If you name your Lists as plural forms of your Objects, everything should work fine. For instance, if you have a list of User objects, your List should be named "users" with appropriate getters and setters: |
Back to XDocletIndexedProperties,
or to the Page History.
|