Oak::Web::TopLevel - Top level component of a web application


NAME

Oak::Web::TopLevel - Top level component of a web application


DESCRIPTION

This class is the base for top level components of a web application.


HIERARCHY

Oak::Object

Oak::Persistent

Oak::Component

Oak::Web::Visual

Oak::Web::Container

Oak::Web::TopLevel


EVENTS

ev_onMessage
This event is fired just before the receive_cgi... The CGI object is available at $self->{__cgi__} during this event.

ev_onSyntaxError
This event is launched when some ``check_syntax'' has failed. If you do syntax check, you probably wants to define this event.

ev_onUncaughtError
This event is launched when some error occours when dispatching the events of the child components. If this is not set and an uncaught error occours, the error will be propagated.


METHODS

message(NAME => VALUE)
receives a message from the application. In this module the only message is POST which receives the CGI object.

show(%BAG)
This method is overrided to allow a Oak::Web::Page to optionally receive a BAG that will be saved in the $self->{BAG} variable.

check_syntax(NAME,NAME,NAME,NAME)
Check the syntax of the components. If some exception occours, the name of the component that generated the exception will be added in $self->{__ERRORS__}{name} = {error} and a Oak::Web::Page::Error::Syntax will be thrown.


EXCEPTIONS

The following exceptions are introduced by Oak::Component

Oak::Web::TopLevel::Error::Syntax
This error is thrown by check_syntax telling that some test was wrong.


BUGS

Too early to determine. :)


COPYRIGHT

Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

 Oak::Web::TopLevel - Top level component of a web application