[html-formfu] model_stash + model_config with ComboBox element
Jens Schwarz
blacky6767 at gmx.de
Thu Jan 29 06:25:11 GMT 2009
Hi Carl,
> Hi Jens,
>
> Say the select part of a ComboBox has the following options:
> [ 1 => 'One',
> 2 => 'Two',
> 3 => 'Three',
> ]
> To have the ComboBox select the correct item, you need to do, for example:
> $combobox->default( 2 );
> and not
> $combobox->default( 'Two' );
>
> Could that be the problem?
> I can't tell from your description, whether you're using Model::DBIC's
> default_values(), or whether you're setting it yourself - so can't
> really advise further how to fix it.
>
> Carl
sorry for the delay. Yes, I use default_values() from Model::DBIC and your hint unfortunately did not solve my problem.
Jens
--
NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
More information about the HTML-FormFu
mailing list