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: 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