• 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
passing object to component problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

passing object to component problem


  • Subject: passing object to component problem
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 3 Sep 2008 06:49:23 -0700 (PDT)

I have a component that displays Asset objects. These Assets are a to one relation with Manufacturers  (one Manufacture many assets).

I am trying to learn how to include a new component so I added:

<wo:NewAsset />

where NewAsset is a new stateless component. The new component works fine. but I am at a loss how to pass to it an object. I tried:

<wo:NewAsset workingManufacturer = "$selectedManufacturer"/>

where there are both setters and getters in NewAsset for workingManufacturer (workingManufacturer and setWorkingManufacturer). selectedManufacturer is the  accessor for the Manufacturer selected from a popup. I have an NSLog statement in the getter and indeed it returns the correct selected Manufacturer.

So I want NewAsset's workingManufacturer to be passed this object. I have even tried:

<wo:NewAsset setWorkingManufacturer = "$selectedManufacturer"/>

and the setter in never called. I think it has something to do the the Form.... however if I extend the WOForm to include this component, I get the following error:

er.extensions.components._private.ERXWOForm  - This form is embedded inside another form, so the inner form is being omitted: <er.extensions.components._private.ERXWOForm action: null actionClass: null directActionName: null href: null multipleSubmit: null queryDictionary: null otherQueryAssociations: null >

How do I pass this value in to the component?

Ted





 _______________________________________________
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: passing object to component problem
      • From: David LeBer <email@hidden>
  • Prev by Date: Invalidating objects asynchronously + Terracotta + Groovy
  • Next by Date: Re: passing object to component problem
  • Previous by thread: Re: Invalidating objects asynchronously + Terracotta + Groovy
  • Next by thread: Re: passing object to component problem
  • Index(es):
    • Date
    • Thread