Class CGIKit::Component
In: lib/cgikit/component.rb
Parent: Element

Methods

Included Modules

KeyValueCoding

Constants

CACHE_TEMPLATE_DIR = 'cache'

Attributes

application  [RW] 
context  [RW] 
context_id  [RW] 
declaration_name  [RW] 
declaration_store  [RW] 
parent  [R]  Parent component.
subcomponents  [RW] 

Public Class methods

Public Instance methods

_( key, name = nil, package_name = nil, languages = nil )

Alias for message

Invoked after the component is restored to initialize. This method invokes deletage method did_restore_page() finally.

Returns base name of the component in name space package.

request-response loop

Returns name of the declaration( binding ) file.

Invoked after restoring the component.

marshaling

Invoked to initialize component. Form data is not setted when the method is called.

loads template, merges declaration hash, loads declaration file

n_( key, plural_key, n, name = nil, package_name = nil, languages = nil )

Alias for nmessage

Synchronizing components

template paths

Creates a specified page component.

Path for the component.

Allows a subcomponent to invoke an action method of its parent component bound to the child component.

Returns a request object of the context.

Returns a resource manager object.

Returns a response object of the context.

accessing

testing

Returns the session object. If the session isn’t existed, returns a new session.

Return true if parent component syncronizes bound attribute to self. Override this method returns false to create a non-synchronizing component.

Returns name of the template file.

Invoked when the component parses declarations. A hash returned by the method is used instead of declaration file.

Invoked when the component parses template. A string returned by the method is used instead of template file.

Invoked when saving the component. If the component has data can’t be saved or marshaled with FileSessionStore, you must clear the data in this method.

[Validate]