ZF-7457: Dojo ComboBox default value does not appear when no options are added


The value of a ComboBox is lost if it does not have any options added. A ComboBox is rendered as a select form element, and the decorator removes the value attribute. This is fine when there are options and an option matches the value. But in a ComboBox with no options the value should be preserved in the input tag. This is important to keep because the ComboBox's options may be filled later with a datastore.

The following should make a ComboBox with "test" as its value.

$form = new Zend_Dojo_Form();
$combo = $form->createElement('ComboBox', 'combo');


Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.