Hi All,

I am trying to make a simple menu ViewComponent using Castle trunk and
the Brail view engine.

Here is my component view:

<ul>
<?brail for item in navLinks: ?>
<li>${Url.Link(item.Key, item.Value)}</li>
<?brail end ?>
</ul>


And this is the Initialize method of the component (there is no other
code in it):

                public override void Initialize()
                {
                        var navLinks = new Dictionary<string, 
Dictionary<string,string>>
                                        {
                                                {"Users", new 
Dictionary<string, string>
{{"Controller", "Users"}, {"action", "index"}}},
                                                {"Reports", new 
Dictionary<string, string>
{{"Controller", "Reports"}, {"action", "index"}}},
                                                {"Settings",new 
Dictionary<string, string>
{{"Controller", "Settings"}, {"action", "index"}}}
                                        };

                        PropertyBag["navLinks"] = navLinks;
                }


My problem is that the links are rendered with the correct text/label
i.e. Users, Reports then Setting. However all the links refer to the
Users controller and the index action.

What am I missing?

Regards,
Jarrod
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to