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
...nobody




JSPWiki v2.2.33

[RSS]


Hide Menu

XDocletIndexedProperties


Difference between version 4 and version 2:

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 47 changed 1 line.
c = Class.forName("us.co.adams.apptracker.webapp.form." + name + "Form");
c = Class.forName("org.appfuse.webapp.form." + name + "Form");
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.