[Webwork-user] Setting Property of a Property
Brought to you by:
baldree,
rickardoberg
From: Tim W. <tl...@us...> - 2000-11-24 21:22:05
|
Well, I can get the property of a property by separating them with :, that's very cool. But I can't seem to set the property of a property in an action the same way. I'd prefer not to define getters and setters for all my data object's fields again in the action class, since I have a lovely PersonData class generated by EJBDoclet that already has all those getters and setters. I'd like to make the name of an HTML Form field currentPerson:lastName and have webwork set the lastName field of the PersonData attribute of the PersonEdit class. Is this possible? I can't seem to get it to work - I have debug turned on, and the Dispatcher doesn't appear to be recognizing the : fields in setParameters. Any thoughts? Thanks, Tim |