Skip to main content
Participating Frequently
May 10, 2011
Question

NavigationParsley and local scope trouble with waypoints

  • May 10, 2011
  • 1 reply
  • 3084 views

Hi,

I'm using NavigationParsley in order to "switch" three component (using property "automationName") contained in a View A.

This view contains so the waypoint meta tag and a PM (wherever it is) triggers the "switch" by using the  NavigationEvent.createNavigateToEvent(...) event.

This works perfectly on the (default) global scope.

Now I've got the following issue : A tabNavigator having several tabs (same type - I'm using Observer + itemRenderer for the tab) and each of these tabs got their own context.

In the PM which trigger the NavigationEvent (in the specific context)  I'm using the "local" scope to dispatch events. In order to do so my PM contains [ManagedEvents(names="eventName1, eventName2, ..., navigateTo", scope="local")].

I've tested if the NavigationEvent was correctly dispatched by adding in a PM (whithin the same context) the following method:

[MessageHandler(selector="navigateTo",scope="local")]

public function testNavigationEvent(event:NavigationEvent):void{

     trace('test navigation event was caught');

}

And the event is rightly caught (and so dispatched) in the apprpriate context

BUT the view A does not trigger the event based on automationName as it was doing when event was set as "global".

So I guess [Waypoint] in the view A does not handle the event if set as "local" (but then how to set the waypoint as "loacal" ???)

Thx to answer if you get some fix/explanation/everything which could made the Navigatio working with local event

This topic has been closed for replies.

1 reply

Participating Frequently
May 10, 2011

Agree with you. Can you file a bug?

Participating Frequently
May 11, 2011

Ok I'm waiting for registration (I thought I've already have one...) and I put the bug in Jira.

[edit]

Ok I've done it : CGM-74

Thx Alex.

Regards,

Cédric

Participating Frequently
May 25, 2011

Hi,

Any news on this subject ?

Thanks

Cédric