The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::Wyrd::ErrField - Alter layout of an Apache Wyrd to indicate errors

SYNOPSIS

    <BASENAME::ErrField trigger="name">
      <b>Name:</b>
    </BASENAME::ErrField><br>
    <BASENAME::Input type="text" name="name" flags="required" />

DESCRIPTION

Identical to Apache::Wyrd::ErrTag, but instead changes the format of the enclosed text (by default to the CSS class of "error"), if the trigger error has occurred. This is meant to be used as a method of changing the appearance of the titles of inputs when those inputs contain illegal values.

HTML ATTRIBUTES

trigger

Alias of triggers.

triggers

Which errors to alter state for. May be a comma or whitespace separated list.

PERL METHODS

(format: (returns) name (arguments after self))

(void) fire (void)

Method called to trigger the behavior of an error.

(arrayref) get_triggers (void)

Called by the Form parent to determine what error conditions will trigger this tag.

BUGS/CAVEATS/RESERVED METHODS

Reserves the _format_output method.

AUTHOR

Barry King <wyrd@nospam.wyrdwright.com>

SEE ALSO

Apache::Wyrd

General-purpose HTML-embeddable perl object

Apache::Wyrd::Form

Build complex HTML forms from Wyrds

LICENSE

Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.

See LICENSE under the documentation for Apache::Wyrd.