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



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


LICENSE

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

See LICENSE under the documentation for Apache::Wyrd.

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