FAQ

Carl Franks wrote:
On 17/10/06, Zbigniew Lukasiak wrote:
I am sure process() does preserve the values, I am using that.
Yup...

$ perl -MHTML::Widget -le '
my $w = HTML::Widget->new;
my $e = $w->element( Textfield => q{foo} );
$e->value( q{bar} );
my $r = $w->process;
print $r;
' | splithtml
<form id="widget" method="post">
<fieldset class="widget_fieldset">
<input class="textfield" id="widget_foo" name="foo" type="text" value="bar" />
</fieldset>
</form>
Indeed it does.

The problem was in fact that DBIx::Class::HTMLWidget::fill_widget wasn't
setting field values in the first place, due to the fact that I had
version 0.06 rather than 0.07 (I'm on FreeBSD and the port is still at
0.06 :-/ ). Quick upgrade with CPAN.pm and all is now dandy.

Thanks for the assistance.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 10 of 10 | next ›
Discussion Overview
grouphtml-widget @
categoriesperl, catalyst
postedOct 13, '06 at 4:17p
activeOct 17, '06 at 2:40p
posts10
users5
websitemetacpan.org...

People

Translate

site design / logo © 2021 Grokbase