Castle.MonoRail.Views.Brail.BrailBase.RenderComponent C# (CSharp) Method

RenderComponent() public method

public RenderComponent ( string componentName, IDictionary parameters ) : void
componentName string
parameters IDictionary
return void
        public void RenderComponent(string componentName, IDictionary parameters)
        {
            BrailViewComponentContext componentContext =
                new BrailViewComponentContext(this, null, componentName, OutputStream, 
                new Hashtable(StringComparer.InvariantCultureIgnoreCase));
            this.AddViewComponentProperties(componentContext.ComponentParameters);
            IViewComponentFactory componentFactory = (IViewComponentFactory)this.context.GetService(typeof(IViewComponentFactory));
            ViewComponent component = componentFactory.Create(componentName);
            component.Init(this.context, componentContext);
            component.Render();
            if (componentContext.ViewToRender != null)
            {
                this.OutputSubView("/" + componentContext.ViewToRender, componentContext.ComponentParameters);
            }
            this.RemoveViewComponentProperties(componentContext.ComponentParameters);

        }

Same methods

BrailBase::RenderComponent ( string componentName ) : void