+---------------------------------------------------------------------------+
| Bugzilla Bug ID                                                           |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         OPN=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker CRI=Critical  REG=Regression  MAJ=Major   |
|     |   |           MIN=Minor   NOR=Normal    ENH=Enhancement TRV=Trivial |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
|  412|Ver|Nor|2001-01-08|JspC on Windows fails to handle includes in subdir|
| 2350|Ver|Nor|2001-06-27|ServletConfig.getInitParameter() requires url-patt|
| 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c|
| 9737|Ver|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p|
|44911|Ass|Nor|2008-04-30|Test again from Chirag                            |
+-----+---
    [ 4, 'four' ],
]);

$form->process;

print $form;

###

The above example works as expected - with the select menu containing
'3' and '4' options.

The only thing I can think of, is that you're calling options()
directly on $combobox->elements->[0]
rather than on the combobox - don't do this - you should consider the
combobox a blackbox with regards its child elements.

If that's not it, I'll need to see some code.

> work, but:
>    elements:
>      - type: ComboBox
>        label: Country
>        name: country
>        values: USA UK Canada
>
> gives the somewhat confusing: "values argument (USA UK Canada) does not seem 
> to be a function" error.

That is equivalent to:
    values: 'USA UK Canada'

I think you mean:
    values: ['USA', 'UK', 'Canada']

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to