NAME

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

DESCRIPTION

This class is the web page itself.

HIERARCHY

Oak::Object
Oak::Persistent
Oak::Component
Oak::Web::Visual
Oak::Web::Container
Oak::Web::Page

PROPERTIES

The Oak::Web::Page object has the following properties:

lang

Language of the HTML code

dir

Text direction (left to right or right to left

title

The title of this web page

meta

This property contains the text to include as meta information (as is, including the tag, but not < nor >)

linkrel

This property contains the text to include as linkrel (as is, including the tag, but not < nor >)

style

Space for stylesheet

expire_cookies

Boolean. If set will expire all the cookies of this session

script

Space for javascript

EVENTS

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.

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.

get_cookies_properties

Return a HASH with the default properties of the cookies

EXCEPTIONS

The following exceptions are introduced by Oak::Component

Oak::Web::Page::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.