Menu

#10 Bean "display name" property

open
nobody
None
5
2005-12-14
2005-12-14
No

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.

Discussion

  • Torsten Schlabach

    Diff for form.vsl (in struts/jsp)

     
  • Torsten Schlabach

    lives in src/com/finalist/jaggenerator/modules

     
  • Torsten Schlabach

     lives in src/com/finalist/jaggenerator/modules
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.