On 2013-01-31, at 2:02 PM, Johnny Miller wrote:

> Dear Guru,

I feel like I should come to WOWODC with a flowing beard and long robes.


> I'm not overriding invokeAction on either Menu or MenuItem is that the 
> mistake?

I am just guessing from the symptoms.  "Menu finds all it's MenuItems and then 
the MenuItem finds all it's hyperlinks" is not the way that WO is intended to 
work (though I have abused it like that myself), so I am unsure what it 
happening in your code.  Is childrenElements() getting populated correctly?


Chuck




> On Jan 31, 2013, at 12:01 PM, Chuck Hill <[email protected]> wrote:
> 
>> Is Menu calling invokeAction on all of the MenuItem?  Are they calling it on 
>> all of the hyperlinks.
>> 
>> Chuck
>> 
>> 
>> On 2013-01-31, at 1:15 PM, Johnny Miller wrote:
>> 
>>> Hi,
>>> 
>>> I have some code that looks like this:
>>> 
>>> <webobject name = "Menu">
>>>     <webobject name = "MenuItem">
>>>             <wo:Hyperlink action = "$someAction">Do Stuff</wo:hyperlink>
>>>     </webobject>
>>> </webobject>
>>> 
>>> Menu and MenuItem are two components that subclass ERXDynamicElement
>>> 
>>> Basically Menu finds all it's MenuItems and then the MenuItem finds all 
>>> it's hyperlinks and they are formatted the way I want during the respective 
>>> appendToResponse phases.
>>> 
>>> The HTML looks right but for some reason $someAction doesn't get called 
>>> when the link is clicked?
>>> 
>>> Can anyone shed the light on what I'm missing?
>>> 
>>> Thanks in advance,
>>> 
>>> Aloha,
>>> Mr. Johnny Miller
>>> Web Development Manager
>>> Kahalawai Media Company
>>> Lahaina, HI 96761
>>> tel: (808) 661-7962 | mobile: (808) 283-0791
>>> website | e-mail    
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      ([email protected])
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>>> 
>>> This email sent to [email protected]
>> 
>> -- 
>> Chuck Hill             Senior Consultant / VP Development
>> 
>> Practical WebObjects - for developers who want to increase their overall 
>> knowledge of WebObjects or who are trying to solve specific problems.    
>> http://www.global-village.net/gvc/practical_webobjects
>> 
>> Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest 
>> Growing Companies in B.C! 
>> Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
>> Canada’s Fastest-Growing Companies by PROFIT Magazine!
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> 

-- 
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing 
Companies in B.C! 
Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
Canada’s Fastest-Growing Companies by PROFIT Magazine!









 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to