you might be able to overcome this by assigning item.Value to a local
variable. Not sure about brail syntax for that. perhaps
<ul>
<?brail for item in navLinks: ?>
<% options = item.Value %>
<li>${Url.Link(item.Key, options)}</li>
<?brail end ?>
</ul>Though I'm not sure about the syntax, and not sure that it would solve the problem. I'm *very* rusty with brail On Tue, Jun 23, 2009 at 12:13 PM, netrunner2 <[email protected]> wrote: > > 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 > > > -- Ken Egozi. http://www.kenegozi.com/blog http://www.delver.com http://www.musicglue.com http://www.castleproject.org http://www.gotfriends.co.il --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
