| 1 | use warnings; | ||
| 2 | use strict; | ||
| 3 | |||
| 4 | package Jifty::Web::Form::Field::Unrendered; | ||
| 5 | |||
| 6 | use base qw/Jifty::Web::Form::Field/; | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Jifty::Web::Form::Field::Unrendered - Handle unrendered fields | ||
| 11 | |||
| 12 | =head1 METHODS | ||
| 13 | |||
| 14 | =head2 render | ||
| 15 | |||
| 16 | Don't render anything. For one reason or another, this form field should never, ever be rendered, perhaps | ||
| 17 | because it's internally generated and handled. | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | sub render { | ||
| 22 | my $self = shift; | ||
| 23 | # XXX TODO this shouldn't be in the superclass like that | ||
| 24 | ''; | ||
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | =head2 handler_allowed HANDLER_NAME | ||
| 29 | |||
| 30 | Returns 1 if the handler (e.g. onclick) is allowed. Undef otherwise. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | sub handler_allowed { | ||
| 35 | undef; | ||
| 36 | } | ||
| 37 | |||
| 38 | |||
| 39 | 1; |