Re: WOHyperlink in WOComponentContent wrapped by WORepetition in subcomponent
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