• 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: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent


  • Subject: Re: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
  • From: LD <email@hidden>
  • Date: Thu, 30 Jun 2005 13:11:18 +1000

Hi there,

On 30/06/2005, at 7:21 AM, Kieran Kelleher wrote:


I have a reusable component (WKObjectTable) that generates a HTML table displaying attributes for an array of objects. The row repetition in this reusable component has a WOComponentContent allowing parent components to optionally add content for each row.


Assume this is populated via an optional API binding for the component... e.g., a dictionary of content (values) for the repetition objects (as keys).



In a parent component, I have put a WOHyperLink as the component content. Is it possible to have this WOHyperlink trigger a setObject (selection) inside the reusable component's repetition just like WORepetition normally does when it directly has a WOHyperlink inside it? If so, any pointers on how to accomplish that cleanly?


If I understand properly, you're wanting various actions called in the parent (the reason for passing the WOHyperLinks) but the reusable component to also get some value (based on the selection)?


Maybe you could adjust the API for the reusable component to allow the passing of a dictionary of content to populate the WOComponentContent columns (with keys as the repetition objects and values as the optional component content - as a *string*). Create the WOHyperLinks in the reusable component bound to a particular action in the reusable component.

Then when the action is called you've got the object in question by default. If you need a callback feature to your parent object, maybe you could adjust your API to be able to (optionally) assign a delegate object and method to invoke...

Just some incomplete ideas...

with regards,
--

LD

_______________________________________________
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: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
      • From: Kieran Kelleher <email@hidden>
References: 
 >WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: EOIndex
  • Next by Date: Switch component for existing instances
  • Previous by thread: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
  • Next by thread: Re: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
  • Index(es):
    • Date
    • Thread