Re: Bug #6511 [Opn->Bgs]: problems displaying a group element with an inner group
| From: | Marques Johansson | Date: | Wed, 18 Jan 2006 13:01:42 +0000 |
| Subject: | Re: Bug #6511 [Opn->Bgs]: problems displaying a group element with an inner group | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-3386@lists.php.net to get a copy of this message | ||
It seems like the functionality is present in the classes, as Elements
can contain Elements that contain Elements, and a group is just an
extension of Element. There seems to be little in the way of change
needed to correctly display them (as it properly stores the structure).
If I fix this display problem with QF3, would it be accepted into QF3?
or are you waiting for QF4?
PEAR Bug Database wrote:
>ATTENTION! Do NOT reply to this email!
>To reply, use the web interface found at
>http://pear.php.net/bugs/bug.php?id=6511&edit=2
>
>
> ID: 6511
> Updated by: mansion@php.net
> Reported By: marques at displague dot com
>-Status: Open
>+Status: Bogus
> Id: 6511
> Type: Bug
> Package: HTML_QuickForm
> PHP Version: Irrelevant
> New Comment:
>
>Groups within groups are not supported in QuickForm 3.
>
>
>Previous Comments:
>------------------------------------------------------------------------
>
>[2006-01-17 16:53:50] marques at displague dot com
>
>Description:
>------------
>When you display a form, with a group within a group (as the first
>element, at least), the grouped element will be duplicated, appearing
>before and after the other elements.
>
>
>
>A var_dump of the $form object shows everything seemingly in place (no
>dupes) - I think the culprit is the group handling part of
>renderElement in the 'Default' Renderer.
>
>Test script:
>---------------
>$g = array();
>
>$g[] = HTML_QuickForm::createElement('checkbox',...);
>
>$g[] = HTML_QuickForm::createElement('select',...);
>
>$gObj = HTML_QuickForm::createElement('group',...,$g);
>
>
>
>$form->addGroup(...,array($gObj,[checkboxa],[checkboxb]));
>
>
>
>$form->display();
>
>
>
>Expected result:
>----------------
>[checkbox] [select]
>
>[checkboxa]
>
>[checkboxb]
>
>Actual result:
>--------------
>[checkbox] [select]
>
>[checkboxa]
>
>[checkboxb]
>
>[checkbox] [select]
>
>------------------------------------------------------------------------
>
>
>
>
--
Marques Johansson
marques@displague.com