• 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: Sat, 2 Jul 2005 02:12:51 +1000

Hi Kieran,

On 02/07/2005, at 12:02 AM, Kieran Kelleher wrote:

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.

Very interesting... thanks for the info. That could come in handy some day :-)


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

  • Prev by Date: Re: Wonder binary releases (Was: PostgreSQL plugin)
  • Next by Date: Re: Wonder binary releases (Was: PostgreSQL plugin)
  • Previous by thread: Re: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
  • Next by thread: Reference current session...common accessor ??
  • Index(es):
    • Date
    • Thread