Michael - 2003-10-01

I might be working on porting a company framework (and hopefully open source it) from ASP/VB (yack!) to Java. The idea of the framework is quite simple. It is a framework for buiding administration screen like update/search edit user but it has some interesting diferrences.

The Business objects a described in xml ie :

<entity>
<name>user</name>
<table>usr</table>
<attributes>
   <name>firstname</name>
   <label>
     <EN>
      <label>First Name</label>
     </EN>
     .....
</attributes>

<attributegroups>
   <attributegroup>
     <name>Label</name>
     <attributes>
        <attribute>firstname</attribute>
        <attribute>surname</attribute>
     </attributes>
   </attributegroup>
   <attributegroup>
     <name>Edit</name>
     <attributes>
        <attribute>firstname</attribute>
        <attribute>surname</attribute>
        ....
     </attributes>
   </attributegroup>
   etc..
</entity>

The Business Object xml descriptor has enough information for display it as well as updating it. AttributesGroups allow for list views and edit views of the object.

Another component of the framework is the PageFlows that are made up of Actions that use these Business Objects to get the info for these views like "Edit User". Most of the time you do not need to write code at all, we have also written a editor for the Business Objects and the Pages Flows.

So at the end of the day the html of genernated by the framework from the xml descriptor and the persistence is also done from there.  So doing administration screens are very quick. ie : days instead of weeks. The some code can be used for web front ends as well as guis.

I was wondering it there is anything else out there like this or are there ways on doing some intergration of this with Struta and Hibernate and Cocoon?

Mike