On 10 Mar 2010, at 21:09, Carl Franks wrote:
>
> I think my preferred method would be to create a custom subclasss of
> Textarea which provides its own string_field()
Oh yes - that does look neater.
Nigel.
--
[ Nigel Metheringham nigel.methering...@intechnology.com ]
[ - Comm
I think my preferred method would be to create a custom subclasss of
Textarea which provides its own string_field() looking something like
this:
sub _string_field {
my ( $self, $render ) = @_;
my $html = q{};
$html .= $self->next::method($render);
$html .= q{};
return $html;
My solution for this was to add these in my catalyst root controller
(purely because it seemed like a reasonable place to put oddments):-
# hack some of the FormFu stuff a bit...
sub HTML::FormFu::Element::Textarea::_string_field_start {
my ( $self, $render ) = @_;
return (
$self-