I use display groups to create "containers" with id attributes to manipulate
them in javascript and I would really appreciate ability to nest display
groups.

I tried something like this (elemX is any form element):
$form->addDisplayGroup(array('elem1','elem2'), 'group1',
array('id'=>'group1'));
$form->addDisplayGroup(array('group1','elem3'), 'group2',
array('id'=>'group2'));

and want result like:
<group2>
  <group1>
    <elem1><elem2>
  </group1>
  <elem3>
</group2>

but I just get error "No valid elements specified for display group".

Is there a way to achieve this effect with current Zend_Form? I know that I
can simulate this by using nested sub-forms, but sub-forms are handled
differently and working with them in this way is quite uncomfortable,
because for example you have to set decorators for their elements
individually.
-- 
View this message in context: 
http://www.nabble.com/Zend_Form-feature-request---nested-display-groups-tp16572736p16572736.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to