I have two Components in my application, based on a
ViewStack. For the
purpose of simplicity, let's call them "AdminView" and
Essentially the two ViewStacks contain different screens (or
if applicable) dependent on the access level returned from
So we've got the application looking like this:
ApplicationControlBar (with dataProvider set to a static id
"myViews", which will be the id of the loaded stack so that
displays the correct screens)
And then I want to load one of the views depending on the
which I will store in the Controller. So the Controller will
the event to the view once the access level is set.
I know how to do that with no issue.
I just don't know how I would "dynamically" set the MX tag to
proper view stack. For example, if it's an admin, the view
<view:AdminView> and if it's a normal user, it would be