Okay, it isn't a nesting problem on the web-component side of things. I think it is a problem with how I'm stepping through the objects to update them. Simple attributes and to-one relationships are easy, to- many relationship updates have me stumped.

Can anyone give me an example of how to iterate through the related objects and update them with the values submitted in the form?

Thanks,

Dave

On Apr 3, 2007, at 2:19 PM, Chuck Hill wrote:


On Apr 3, 2007, at 12:12 PM, David Avendasora wrote:

Okay, I have one form on the page. One submit button in the form.

It will update the attributes of "Routing" (the top level component) but as soon as I try to update attributes of destination of the to-many relationship (RoutingStep) I get a java.lang.NullPointerException. The object that it is finding to be null is the aRoutingStep object that is the "item" binding of the WORepetition. The "list" binding of the WORepetition is aRouting.routingSteps.

Am I missing something?

A nesting problem?

<webobject name="Repetition">
....
<!-- here the value of the item binding of Repetition is guaranteed to have a valid value --:>
...
</webobject name="Repetition">
<!-- here the value of the item binding of Repetition is guaranteed to be null --:>


Chuck


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to