I have added a "display name" field to the definition
of the entity in the JAG application XML file.
This is the name of the bean's property which is used
to identify the bean in a human readable manner, for
example in a drop down box.
If for example in an order detail bean you have a
foreign key that refers to the product ordered, you
probably want the product name instead of the product's
id to show up in the drop down box?
The patch includes
- the new field to show up on the Entity form in the
JAG gui.
- the code needed to persist that field in the JAG
application XML file
- the changes to form.vsl to use the DisplayName
property of a bean instead of the primary key to make
drop down boxes.
This patch is against JAG 5.0.1.
Diff for form.vsl (in struts/jsp)
lives in src/com/finalist/jaggenerator/modules