it's a known bug, try this: http://www.framework.zend.com/issues/browse/ZF-4977;jsessionid=C628D5128C025969ADFBC9D052740C19?page=com.atlassian.jira.ext.fisheye:fisheye-issuepanel
On Tue, Nov 25, 2008 at 10:14 PM, drj201 <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have created a form class that extends Zend_Dojo_Form. I have various > elements (i.e. ComboBox, DateTextBox etc) in the form including a > SubmitButton and they all display perfectly in ZF1.6.1. > > My problem has arrisen since upgarading to ZF 1.7. Since the upgrade the > SubmitButton is not displaying correctly (Everything else works fine). > > Below is the code involved: > > $this->addElement('SubmitButton', 'submit', array( > 'label' => 'Submit!!!!!!', > 'decorators' => $this->_buttonElementDecorator // returns array > ('DijitElement') > )); > > > $this->addDisplayGroup( > array('submit'), 'datasubmit', > array( > 'disableLoadDefaultDecorators' => true, > 'decorators' => $this->_buttonGroupDecorator, // returns array > ('FormElements', 'Fieldset') > 'class' => 'submit' > ) > ); > > This results in the following HTML being generated: > > <input content="Submit!!!!!!" id="submit" name="submit" value="" > type="submit" /></fieldset></form> > > > Note the 'label' value from the addElement is placed within a 'content' > attribute in the HTML but the 'value' remains empty...?! > > Am I doing something wrong? Apologies if so... This works perfectly fine in > ZF 1.6.1. I notice the Dojo CDN has changed to Google in the latest > release > but Im unsure of the cause... Both Zend_Dojo_View_Helper_SubmitButton and > Zend_Dojo_View_Helper_Button appear to be exactly the same in both > versions... > > Thanks, > > David > -- > View this message in context: > http://www.nabble.com/ZF-1.7---Zend-Dojo-SubmitButton-Bug--tp20680984p20680984.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >