Leon,
I want to put some code into the ParameterParser.setProperties that will
allow you to set the properties based on form elements that have the name of
a property with the ID appended, for example, I have an application that
needs to clean up some data from a legacy datasource. So sometimes there
are two contacts which are really the same, but someone needs to eyeball it
to find out, because one has the address: N.Y.C. and the other has the
address NYC.
So I display both contacts in the form, and if the IDs are 1230 and 1231
then the form elements are named like FirstName1230 and FirstName1231, etc.
The contact that is chosen needs to get updated, and then a special method
is called which merges the records in the DB.
So what I'm getting at is that there's no way for ParameterParser to know
from the Bean passed to setProperties, what is the ID. Because each class
has a different method for getiing the ID, like getContactId or
getCorrespondenceId. So can we make the Generator put in a method that will
return int for getId, and will call the accessor method for the primary key.
I don't know what it would do for multi-column keys though....
Then the setProperties can check for PropertyName + Bean.getId() if there is
no PropertyName form element.
-Nissim
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]