Navigation Library with runtime metadata in Parsley?
Hi There,
I'm working with the Adobe Navigation Library. I'm trying to do something with a PM where instead of defining the [Landmark] tag on the class itself, I want this to be assigned dynamically for that type (or for an id) from the context, so that a particular PM class could be reused in different navigation schemes in multiple apps.
In the Navigation library, there's a LandmarkDecorator (extends ObjectDefinitionDecorator) which is looking at the ClassInfo ONLY, and the [Landmark] decoration from the mxml tag doesn't appear in ClassInfo of course. At that point, for other tags which work in conjunction with [Landmark], it throws an error because it cannot see a [Landmark] tag.
What I want to do is:
1. Attach the [Landmark] (and other) Navigation tags to objects at runtime using tags in mxml or xml
2. Possible modify the AbstractNavigationDecorator to see the dynamically-added tag(s) so that the Landmark prerequisite can be satisfied
Also, here's what the mxml looks like:
<Object type="{NewsPM}">
<landmark:LandmarkDecorator name="content.news"/>
<landmark:EnterDecorator method="firstEnter"
time="first"/>
</Object>
Any ideas?
Thanks in advance,
Bruce Flowers
