• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOForm Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOForm Question


  • Subject: Re: WOForm Question
  • From: David Avendasora <email@hidden>
  • Date: Tue, 3 Apr 2007 14:12:39 -0500

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?

Dave



On Mar 30, 2007, at 5:24 PM, Chuck Hill wrote:


On Mar 30, 2007, at 3:01 PM, David Avendasora wrote:

I've got a somewhat complicated form I'm working on and I'm running into problems. I can't find detailed documentation on WOForm so here's my question (please point me to any useful documentation other than the WOBuiler Dynamic Components Reference):

I have three entities Routing, RoutingStep and Component they are related as follows:

-> to-one
=> to-many

Routing => RoutingStep => Component
Component -> RoutingStep -> Routing

Ideally, I'd like to be able to edit them all-together in one form, but I'm not sure if it is possible or not.

It might be a large page...


This goes way beyond having multiple submit buttons.

Here's an example of the stucture:

<form>
Routing
-RoutingStep 1 of Routing
--Component 1 of RoutingStep 1
--Component 2 of RoutingStep 1
--Component 3 of RoutingStep 1
-RoutingStep 2 of Routing
--Component 1 of RoutingStep 2
--Component 2 of RoutingStep 2
--Component 3 of RoutingStep 2
-RoutingStep Etc, etc, etc.
</form>


Each entity, of course, has it's own attributes and other to-one relationships.

Without being able to nest WOForms inside HTML tables

You can nest them inside of HTML tables, what you can't do is to nest them inside of each other.



, it makes layout difficult, and I can't find documentation on if more than one form is allowed on one page, etc.

You can have more than one on a page, but like this:

<webObject name="Form1">
	///
</webObject name="Form1">

<webObject name="Form2">
	///
</webObject name="Form2">

What you can't do is this:

<webObject name="Form1">
	///
	<webObject name="Form2">
	///
	</webObject name="Form2">
	///
</webObject name="Form1">


Or this

<webObject name="Form1">
	///
	<webObject name="Form2">
	///
</webObject name="Form1">
///
</webObject name="Form2">

Not sure what your problem is beyond that.  Care to explain  further?


Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









_______________________________________________ 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
  • Follow-Ups:
    • Re: WOForm Question
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Saving uploaded file data to database
  • Next by Date: Re: WOForm Question
  • Previous by thread: Re: Saving uploaded file data to database
  • Next by thread: Re: WOForm Question
  • Index(es):
    • Date
    • Thread