• 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: Kieran Kelleher <email@hidden>
  • Date: Fri, 1 Jul 2005 10:02:41 -0400

Solved by using a little bit of logging to understand correspondence between context senderID and elementID when items wrapped by the reusable component were clicked. Actually little code was required and the code only exists in the reusable nonsynchronizing stateless component and it works perfectly. The solution was to over-ride invokeAction on the reusable component and check if the context.senderID().startsWith( context.elementID() ) in which case the clicked item was a parent item that _was_ wrapped by the reusable component. Then the repetition index could be extracted from the senderID and a reference to the corresponding object could be pushed into the parent through an optional "selectedObject" binding. Consequently the selectedObject ivar in the parent is set just in time for the parents action triggered by the parent's WOHyperLink wrapped by the reusable component.

Thanks for helping. I'm happy now because it is reusable and has low commitment from parents that use it!

LD and Arturo, thanks for taking the time to reply and provide stimulating ideas.

Regards, Kieran

_______________________________________________
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: LD <email@hidden>
  • Prev by Date: WO 5.2 License Key ?
  • Next by Date: Re: Wonder binary releases (Was: PostgreSQL plugin)
  • Previous by thread: WO 5.2 License Key ?
  • Next by thread: Re: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
  • Index(es):
    • Date
    • Thread