Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-FormHandler CPAN distribution.

Report information
The Basics
Id: 76942
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

People
Owner: Nobody in particular
Requestors: h.dudeness [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.40007
Fixed in: (no value)



Subject: HTML::FormHandler::Render::Table render_field is not working
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 550
Download (untitled) / with headers
text/plain 550b
perl5 (revision 5 version 8 subversion 8) 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux I have my forma packages setup like this: package MyForm; use HTML::FormHandler::Moose; extends 'HTML::FormHandler'; with 'HTML::FormHandler::Render::Table'; Then to render I make use of the render_field method in toolkit: [% form.render_field('email') %] FormHandler does not seem to be wrapping the fields in <tr><td> anymore. I am not sure if I am not using it correctly or if it is not supposed to function that way anymore.
From gerda.shank [...] gmail.com Wed May 2 11: 37:53 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-5.799 tagged_above=-99.9 required=10 tests=[AWL=0.421, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20177-1335969046-1700.76942-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-76942 [...] rt.cpan.org> <rt-3.8.HEAD-20177-1335969046-1700.76942-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <4FA154C5.5040507 [...] gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.799
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 61B722402CD for <cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com>; Wed, 2 May 2012 11:37:53 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id btSr+Dyqyneb for <cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com>; Wed, 2 May 2012 11:37:52 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id C104424026A for <bug-HTML-FormHandler [...] rt.cpan.org>; Wed, 2 May 2012 11:37:51 -0400 (EDT)
Received: (qmail 31799 invoked by uid 103); 2 May 2012 15:37:51 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 2 May 2012 15:37:51 -0000
Received: from mail-qc0-f178.google.com (HELO mail-qc0-f178.google.com) (209.85.216.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Wed, 02 May 2012 08:37:47 -0700
Received: by qcse1 with SMTP id e1so501116qcs.9 for <bug-HTML-FormHandler [...] rt.cpan.org>; Wed, 02 May 2012 08:37:44 -0700 (PDT)
Received: by 10.224.105.202 with SMTP id u10mr8655473qao.54.1335973064748; Wed, 02 May 2012 08:37:44 -0700 (PDT)
Received: from Gerdas-MacBook-Pro.local (cpe-74-79-23-249.twcny.res.rr.com. [74.79.23.249]) by mx.google.com with ESMTPS id gb7sm3778173qab.12.2012.05.02.08.37.42 (version=SSLv3 cipher=OTHER); Wed, 02 May 2012 08:37:43 -0700 (PDT)
Delivered-To: cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120313 Thunderbird/11.0
Subject: Re: [rt.cpan.org #76942] HTML::FormHandler::Render::Table render_field is not working
Return-Path: <gerda.shank [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=fi8Bg+how+y+upSw+Witil8jhO1/bXCuBYQDGA7TclI=; b=sto6ZlkMdK7OfHVCfbA/HWQSEhLq0xCJAZSR1xTY+JGKKvJme7bauaoiP1x6k/l6TW kUC7oPPbUatXNnfNBRCBeUg2x2cirUBWPYxDNiD2EJgjSce1iEGWuVt0RLLSjP34XShs kgrCMOpCqT3MBkCaoAYcN2TsQg8zAIq3UtSRdirdXqaR8vv2lQrYX+bnKoRL1dYDLhRW eyUiayw6pKMyjumSfhZbVos1T6qC54CEAJRxcIaKV4Tr/kQuEe7SHJIFDcb6+IVfxYl4 TEkkmLNbw9Z0E9KaoyWWaOpSshogexIcfG96fXyT7Lo1CgfqndtYsj8XsJAR8TTJ/0pG Jqjg==
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com
X-RT-Mail-Extension: html-formhandler
Date: Wed, 02 May 2012 11:37:41 -0400
X-Spam-Level:
To: bug-HTML-FormHandler [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Gerda Shank <gerda.shank [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-20170-1335973074-966.76942-0-0 [...] rt.cpan.org>
Content-Length: 951
Download (untitled) / with headers
text/plain 951b
On 5/2/12 10:30 AM, Matt via RT wrote: Show quoted text
> I have my forma packages setup like this: > package MyForm; > use HTML::FormHandler::Moose; > extends 'HTML::FormHandler'; > with 'HTML::FormHandler::Render::Table'; > > Then to render I make use of the render_field method in toolkit: > [% form.render_field('email') %] > > FormHandler does not seem to be wrapping the fields in<tr><td> anymore. I am not sure if I > am not using it correctly or if it is not supposed to function that way anymore.
This is a bug in HTML::FormHandler::Render::Simple. It's been fixed in the repo and will go out in the next release. Meanwhile, you could switch to the Widget table rendering, by doing: with 'HTML::FormHandler::Widget::Form::Table'; has '+widget_wrapper' => ( default => 'Table' ); The widget rendering options are being more fully supported right now. Some new features are only implemented in widgets, not in Render::Simple and Render::Table. Gerda
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-20170-1335973074-966.76942-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-76942 [...] rt.cpan.org> <rt-3.8.HEAD-20177-1335969046-1700.76942-4-0 [...] rt.cpan.org> <4FA154C5.5040507 [...] gmail.com> <rt-3.8.HEAD-20170-1335973074-966.76942-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-20171-1336047153-981.76942-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: h.dudeness [...] gmail.com
X-RT-Original-Encoding: utf-8
Content-Length: 692
Download (untitled) / with headers
text/plain 692b
Show quoted text
> Meanwhile, you could switch to the Widget table rendering, by doing: > > with 'HTML::FormHandler::Widget::Form::Table'; > has '+widget_wrapper' => ( default => 'Table' );
Thanks for the quick reply. I have tried this setup: use HTML::FormHandler::Moose; extends 'HTML::FormHandler'; with 'HTML::FormHandler::Widget::Form::Table'; has '+widget_wrapper' => ( default => 'Table' ); It is the same issue. form.render works great. But [%form.render_field('email')%] outputs nothing. Here is my has_feild: has_field 'email' => ( type => 'Email', required => 1, html_attr => { class => '{required:true}' }, label_attr => { class => [ 'control-label', 'required' ] } );
From gerda.shank [...] gmail.com Thu May 3 11: 43:05 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-5.859 tagged_above=-99.9 required=10 tests=[AWL=0.361, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20171-1336047153-474.76942-5-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-76942 [...] rt.cpan.org> <rt-3.8.HEAD-20177-1335969046-1700.76942-4-0 [...] rt.cpan.org> <4FA154C5.5040507 [...] gmail.com> <rt-3.8.HEAD-20170-1335973074-966.76942-5-0 [...] rt.cpan.org> <rt-3.8.HEAD-20171-1336047153-474.76942-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <4FA2A77D.4090403 [...] gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.859
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B1182240277 for <cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com>; Thu, 3 May 2012 11:43:05 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kcf+0uGg2Wdd for <cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com>; Thu, 3 May 2012 11:43:04 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id EB2DA240276 for <bug-HTML-FormHandler [...] rt.cpan.org>; Thu, 3 May 2012 11:43:03 -0400 (EDT)
Received: (qmail 10591 invoked by uid 103); 3 May 2012 15:43:03 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 3 May 2012 15:43:03 -0000
Received: from mail-qc0-f178.google.com (HELO mail-qc0-f178.google.com) (209.85.216.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Thu, 03 May 2012 08:43:00 -0700
Received: by qcse1 with SMTP id e1so1316219qcs.9 for <bug-HTML-FormHandler [...] rt.cpan.org>; Thu, 03 May 2012 08:42:57 -0700 (PDT)
Received: by 10.229.106.151 with SMTP id x23mr1202337qco.14.1336059777571; Thu, 03 May 2012 08:42:57 -0700 (PDT)
Received: from Gerdas-MacBook-Pro.local (cpe-74-79-23-249.twcny.res.rr.com. [74.79.23.249]) by mx.google.com with ESMTPS id e1sm9586629qao.4.2012.05.03.08.42.54 (version=SSLv3 cipher=OTHER); Thu, 03 May 2012 08:42:55 -0700 (PDT)
Delivered-To: cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120313 Thunderbird/11.0
Subject: Re: [rt.cpan.org #76942] HTML::FormHandler::Render::Table render_field is not working
Return-Path: <gerda.shank [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=LWaADCA7eLupWUf4tKX8gX7BGt0ixuLOvwslPih9+i8=; b=enM3oehLQbpeIWLY5EEk/6AMUXlYpFPjOSHL5CENaityjfV1cqaV1smBZrXGN3Lax3 A0f5Ci1KacZNMoHtFDDKPQ0giSzplgxWesOiou06PkBWJjBfF7rwKyN8EBWqLD3ZvGfz aCMjUYidHFo0DbufCesblvYHsEIdJxeNVcHFHRdToQdD9hrx93sVoPS4JtXhZyt37Oom b9kCf9h5ZbTYnA5z+v1gDYmoVB1eaVyLKmGwKhW6N/jOapFa78wcIVEohtJCnkco5+Tg Knv/trVnMMmXb+4jQsndXDn3KY4GVgZDLjD8UA6l4rh5hYla3356kGBGi6zTV6UkYJkr sN5g==
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+HTML-FormHandler [...] hipster.bestpractical.com
X-RT-Mail-Extension: html-formhandler
Date: Thu, 03 May 2012 11:42:53 -0400
X-Spam-Level:
To: bug-HTML-FormHandler [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Gerda Shank <gerda.shank [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-20178-1336059786-1016.76942-0-0 [...] rt.cpan.org>
Content-Length: 1002
Download (untitled) / with headers
text/plain 1002b
Matt: When using the widget rendering, you don't do form.render_field('email'), you do form.field('email').render. Gerda On 5/3/12 8:12 AM, Matt via RT wrote: Show quoted text
> Queue: HTML-FormHandler > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=76942> >
>> Meanwhile, you could switch to the Widget table rendering, by doing: >> >> with 'HTML::FormHandler::Widget::Form::Table'; >> has '+widget_wrapper' => ( default => 'Table' );
> Thanks for the quick reply. I have tried this setup: > use HTML::FormHandler::Moose; > extends 'HTML::FormHandler'; > with 'HTML::FormHandler::Widget::Form::Table'; > has '+widget_wrapper' => ( default => 'Table' ); > > It is the same issue. form.render works great. But [%form.render_field('email')%] outputs > nothing. Here is my has_feild: > has_field 'email' => ( > type => 'Email', > required => 1, > html_attr => { class => '{required:true}' }, > label_attr => { class => [ 'control-label', 'required' ] } > );
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-20178-1336059786-1016.76942-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-76942 [...] rt.cpan.org> <rt-3.8.HEAD-20177-1335969046-1700.76942-4-0 [...] rt.cpan.org> <4FA154C5.5040507 [...] gmail.com> <rt-3.8.HEAD-20170-1335973074-966.76942-5-0 [...] rt.cpan.org> <rt-3.8.HEAD-20171-1336047153-474.76942-5-0 [...] rt.cpan.org> <4FA2A77D.4090403 [...] gmail.com> <rt-3.8.HEAD-20178-1336059786-1016.76942-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-20178-1336060196-449.76942-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: h.dudeness [...] gmail.com
X-RT-Original-Encoding: utf-8
Content-Length: 79
Thanks for taking the time to respond. I should have looked at the docs closer.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-15530-1338912603-324.76942-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 6
Fixed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.