Re: [html-formfu] Modifying generated html for some form elements

2010-03-10 Thread Nigel Metheringham
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

Re: [html-formfu] Modifying generated html for some form elements

2010-03-10 Thread Carl Franks
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;

Re: [html-formfu] Modifying generated html for some form elements

2010-03-10 Thread Nigel Metheringham
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-