Home

Castle Stronghold

ViewComponent API Document

Base class for UI Components

Constructors

ViewComponent()

Initializes a new instance of the Castle.MonoRail.Framework.ViewComponent class.

Properties

NameTypeDescription
ContextIViewComponentContext Gets the Component Context
RailsContextIRailsEngineContext Gets the Castle.MonoRail.Framework.IRailsEngineContext associated with the current request
ComponentParamsIDictionary Gets the component parameters
SessionIDictionary Gets the Session dictionary.
FlashFlash Gets a dictionary of volative items. Ideal for showing success and failures messages.
HttpContextHttpContext Gets the web context of ASP.NET API.
RequestIRequest Gets the request object.
ResponseIResponse Gets the response object.
PropertyBagIDictionary Provides a way to make data available to the view that the component uses
ParamsNameValueCollection Shortcut to Request.Params

Methods

SupportsSection(String name) : Boolean

Implementor should return true only if the name is a known section the view component supports.

ParameterDescription
name section being added

Render()

Called by the framework so the component can render its content

Initialize()

Called by the framework once the component instance is initialized

Init(IRailsEngineContext railsContext, IViewComponentContext context)

Invoked by the framework.

ParameterDescription
railsContext
context

RenderView(String name)

Specifies the view to be processed after the component has finished its processing.

ParameterDescription
name Missing documentation

RenderView(String component, String name)

Specifies the view to be processed after the component has finished its processing.

ParameterDescription
component Missing documentation
name Missing documentation

RenderSharedView(String name)

Specifies the shared view to be processed after the component has finished its processing. (A partial view shared by others views and usually in the root folder of the view directory).

ParameterDescription
name Missing documentation

CancelView()

Cancels the view processing.

RenderText(String content)

Missing summary

ParameterDescription
content Missing documentation

Google
Search WWW Search castleproject.org