I have an interesting situation which I am going to simplify in an attempt
to establish dialog. I have a web page that contains a form with ten
properties on it. The Action that is associated with this form contains a
Domain object that I wish to populate from this form.
- Seven of the web properties have associated properties in that
Domain object
- One web property is making a "Prototype" AJAX call to a server
resource
- Two are read only and being populated with the AJAX payload
The Domain Object contains a nested Domain object that I'm trying to
populate using these three fields. Does S2 limit the depth to which Action
Domain objects can be populated? After much reading, it appears that so
long as there are appropriate get/set methods, the Domain object graph
should be populated from my form -- but it's not! My submit populates the
seven "top level" properties, but fails to populate nested object
properties. I have double checked the names of my web page fields to make
sure they reference the appropriate "get/set path" and all looks
well-aligned with the two domain objects.
s:textfield name="parent.child.property...
Lastly, what are the rules with implementing ModelDriven on an action? Does
this getModel() provide a benefit over what seems to happen without it?
I'll stop for now.
--
Scott
stanlick@(protected)