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
DTOInForm
StrutsResumeSupport




JSPWiki v2.2.33

[RSS]


Hide Menu

POJOsToForms


Difference between version 23 and version 9:

At line 3 changed 1 line.
__Send your POJOs to the UI rather than converting them to ActionForms first.__
__Send your [POJO]s to the UI rather than converting them to ActionForms first.__
At line 15 added 6 lines.
''Are you saying that you would populate the form manually in the view?'' ~ [mojavelinux]
I suggest looking at Struts' __Nested__ taglib. It does set properties if complex DTO objects
and does not require (semi)manual conversion between strings and actual data types.
With little wrapper to BeanUtilities, which registers a Date handler with desired formatting pattern, it allows correct handling of dates.
At line 16 changed 1 line.
* [ValueObjectInForm]
* [DTOInForm]
* [Nested Extension|http://keyboardmonkey.com/next/index.jsp]
At line 18 changed 1 line.
---
__Comments:__
----
At line 22 changed 3 lines.
For example a form field called "pet/name" will call getPet() - your existing model POJO - and then setName() on it. Your action then just needs to store the updated POJO. Very neat.
-mike cannon-brookes
For example a form field called

Back to POJOsToForms, or to the Page History.