Re: Dynamic Element Help
Re: Dynamic Element Help
- Subject: Re: Dynamic Element Help
- From: Johnny Miller <email@hidden>
- Date: Thu, 31 Jan 2013 12:36:37 -1000
On Jan 31, 2013, at 12:22 PM, Chuck Hill <email@hidden> wrote:
>
> 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.
Now that would be awesome.
>
>> 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?
Yeah, I'm actually basing this off of AjaxTabbedPanel (which is your component I believe?)
The HTML output is exactly the way I want so it must be correctly finding the child elements.
Just like AjaxTabbedPanel I put the find children function in the constructor.
IDK if it helps but the output looks like this:
<ul class="footer-navigation"><li><a href="#" data-trigger="contextMenu"data-contextmenu-options = "{'display':'above'}">+</a><ul class="dropdown-menu"><li><a href="/cgi-bin/WebObjects/KMIWebCMSApp_1.woa/-5570/wo/43.0.9.1.13.1.5.1.5">Create New Group</a></li></ul></li></ul>
Menu is the outer UL
MenuItem is everything inside the first LI
And the links are put inside the list items inside the inner UL
>
> Chuck
>
>
>
>
>> On Jan 31, 2013, at 12:01 PM, Chuck Hill <email@hidden> 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@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>
>>> --
>>> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden