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
Main




JSPWiki v2.2.33

[RSS]


Hide Menu

XdocletActionForms


Difference between version 3 and version 2:

At line 10 changed 1 line.
1. Most of the time, an ActionForm just holds the info from a entity bean, such as a link, but the main forms (the 20% that are used 80% of the time) are much more complex and don't just line up with a single entity. These ActionForms should be allowed to work for the view, not be dictated by the architecture of the model.
* ''Tying Model to View'' - Most of the time, an ActionForm just holds the info from a entity bean, such as a link, but the main forms (the 20% that are used 80% of the time) are much more complex and don't just line up with a single entity. These ActionForms should be allowed to work for the view, not be dictated by the architecture of the model.
At line 12 changed 1 line.
2. Forms can have nested beans, which must be ActionForms, not the associating entity or else you are back to the reason you create ActionForms in the first place, as a proxy. With xdoclet this just generates all sorts of a mess, because if you extend your xdoclet generated ActionForm, then you have to change the reference to the nested form to reference the extended class. Argh, messy.
* ''Nested beans'' - Forms can have nested beans, which must be ActionForms, not the associating entity or else you are back to the reason you create ActionForms in the first place, as a proxy. With xdoclet this just generates all sorts of a mess, because if you extend your xdoclet generated ActionForm, then you have to change the reference to the nested form to reference the extended class. Argh, messy.
At line 14 changed 1 line.
3. Validation. It is very, very wrong (I believe) to use validation tags on your entity bean. On one form the date might have a range limitation, on another form it might not, but still be the same entity. xdoclet validation tags should go on the ActionForm class (an impossibility if you are generating the class dynamically, unless of course you transfer over the tags, but then other issues arise). Again, messy, messy.
* ''Validation'' ~ It is very, very wrong (I believe) to use validation tags on your entity bean. On one form the date might have a range limitation, on another form it might not, but still be the same entity. xdoclet validation tags should go on the ActionForm class (an impossibility if you are generating the class dynamically, unless of course you transfer over the tags, but then other issues arise). Again, messy, messy.

Back to XdocletActionForms, or to the Page History.