ZF-4435: Sliders do not work/render properly when included within a Zend_Dojo_Form_SubForm()

Issue Type: Bug Created: 2008-09-30T22:25:25.000+0000 Last Updated: 2008-12-01T13:50:44.000+0000 Status: Resolved Fix version(s): - 1.7.1 (01/Dec/08)

Reporter: Chris Martin (cgmartin) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

Related issues: Attachments:


Getting the following incorrect rendering when I attach a Horizontal or Vertical Slider to a SubForm:…!

Here is my Form code:

<pre class="highlight">
class App_Form_SliderSubFormTest extends Zend_Dojo_Form
    public function init()

            'name'  => 'masterForm',

            array('TabContainer', array(
                'id' => 'tabContainer',
                'style' => 'width: 600px; height: 300px;',
                'dijitParams' => array(
                    'tabPosition' => 'top'

        $sliderForm = new Zend_Dojo_Form_SubForm();
            'name'   => 'slidertab',
            'legend' => 'Slider Elements',

                    'label' => 'Slide me:',
                    'minimum' => 0,
                    'maximum' => 25,
                    'discreteValues' => 10,
                    'style' => 'width: 450px;',
                    'topDecorationDijit' => 'HorizontalRuleLabels',
                    'topDecorationLabels' => array('0%', '50%', '100%'),
                    'topDecorationParams' => array('style' => 'padding-bottom: 20px;')

        $this->addSubForm($sliderForm, 'slidertab');

The sliders work and render correctly when attached directly to a Zend_Dojo_Form and when used via the $view->horizontalSlider() view helpers.


Posted by Chris Martin (cgmartin) on 2008-09-30T22:47:16.000+0000

I should mention that this was found in trunk rev 11557.

Posted by Matthew Weier O'Phinney (matthew) on 2008-10-01T05:56:19.000+0000

Verified... when using the helpers programmatically. When you switch to declarative syntax, they do work, and this is a viable workaround until I can determine why the programmatic use case is failing.

To enable declarative syntax, call this in your view script prior to rendering the form:

<pre class="highlight">

Posted by Matthew Weier O'Phinney (matthew) on 2008-11-07T13:04:06.000+0000

fixed in r12387

Posted by Wil Sinclair (wil) on 2008-12-01T13:50:44.000+0000

Updating these issues to mark them resolved for 1.7.1.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.