Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::widget::constraint(3pm) [debian man page]

HTML::Widget::Constraint(3pm)				User Contributed Perl Documentation			     HTML::Widget::Constraint(3pm)

NAME
HTML::Widget::Constraint - Constraint Base Class SYNOPSIS
my $c = $widget->constraint( $type, @names ); $c->message('Validation error.'); $c->names(@names); $c->not(1); DESCRIPTION
Constraint Base Class. METHODS
default_message Arguments: $message Return Value: $message Default error message for failing constraints. init Arguments: $widget Called once when process() gets called for the first time. javascript Arguments: $id Should return JavaScript for client side validation and the like. msg message Arguments: $message Contains the validation error message. mk_message Arguments: $message Returns a validation error message. names Arguments: @names Return Value: @names Contains names of params to test. not Arguments: $bool Return Value: $bool Negate constraint. prepare Arguments: $widget Called every time process() gets called. process Arguments: $widget, $params, @uploads Return Value: @errors Validates params and returns a arrayref containing HTML::Widget::Error objects representing failed constraints. process_js Arguments: $id Returns a hashref containing JavaScripts for client side validation and the like. render_errors Arguments: @names A list of element names for which an error should be displayed. If this is not set, the default behaviour is for the error to be displayed for all of the Constraint's named elements. validate Arguments: $value Return Value: $bool Validates a value and returns 1 or 0. AUTHOR
Sebastian Riedel, "sri@oook.de" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2007-03-01 HTML::Widget::Constraint(3pm)

Check Out this Related Man Page

HTML::Widget::Constraint::CallbackOnce(3pm)		User Contributed Perl Documentation	       HTML::Widget::Constraint::CallbackOnce(3pm)

NAME
HTML::Widget::Constraint::CallbackOnce - CallbackOnce Constraint SYNOPSIS
my $c = $widget->constraint( 'CallbackOnce', 'foo', 'bar' )->callback( sub { my ($foo, $bar) = @_; return 1 if $foo == $bar * 2; }); DESCRIPTION
A callback constraint which will only be run once for each call of "process" in HTML::Widget. METHODS
callback cb Arguments: &callback Requires a subroutine reference used for validation, which will be passed a list of values corresponding to the constraint names. "cb" is provided as an alias to "callback". process Overrides "process" in HTML::Widget::Constraint to ensure "validate" is only called once for each call of "validate". render_errors Arguments: @names A list of element names for which an error should be displayed. If this is not set, the default behaviour is for the error to be displayed for all of the Constraint's named elements. validate perform the actual validation. AUTHOR
Carl Franks "cfranks@cpan.org" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2007-03-01 HTML::Widget::Constraint::CallbackOnce(3pm)
Man Page

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Data Validation

Hello, I am trying to use data validation with a program. I have everything else working fine. I just can't figure out what I am doing wrong with the data validation in one of my files. Here is the code: # data validation loop while : do # get input from keyboard ... (2 Replies)
Discussion started by: ericelysia
2 Replies

2. Shell Programming and Scripting

PCC-F-NOERRFILE, unable to open error message file

Hi, I was compiling few C programs in the unix server and getting the following error message rm: /home/a0xxx28/AVT/SEEDLIBRARYDB/LIB/*.a non-existent proc MODE=ANSI CODE=ANSI_C INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARYDB/INCLUDE INCLUDE=/home/a0xxx28/PVT/SEEDLIBRARY/INCLUDE ... (1 Reply)
Discussion started by: kavithakuttyk
1 Replies

3. UNIX for Dummies Questions & Answers

Too Many Arguments Error - shells script

Hi, I am getting the below error : error at the if condition start and when I print the value of TEST, it displays two values as below /home/xyz/out/file1.txt /home/xyz/out/file2.txt if ; then mv $TEST $TARGETDIR/ fi Tried by enclosing it in double quotes "$TEST",... (4 Replies)
Discussion started by: sudhagk
4 Replies