Re: WOForm Question
Re: WOForm Question
- Subject: Re: WOForm Question
- From: David Avendasora <email@hidden>
- Date: Tue, 3 Apr 2007 14:39:16 -0500
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden