[html-formfu] HTML::FormFu::Model::DBIC and inflator question
Marc Logghe
logghe.marc at gmail.com
Sat Feb 5 15:17:18 GMT 2011
Hi all,
I am currently experimenting with H::FF::M::DBIC and
Catalyst::Controller::H::FF.
Consider the yaml form config below.
The select element is filled correctly (value is the id field, label is the
groupname field). So far so good.
But, naive me, I was hoping when calling $form->param_value('groupname') in
the catalyst controller I would have the object automagically inflated.
Instead, I only got the id value.
Is there an option to set to have this behaviour ? Like you have the
auto_inflate option for a DateTime field for instance.
Or do you need to create a custom H::FF::Inflator class ?
Thanks and regards,
Marc
<yaml_form_config>
elements:
- type: Select
name: groupname
label: Group
model_config:
resultset: Radgroupcheck
condition:
attribute: Max-Octets
groupname:
IN:
- Group1
- Group2
attributes:
group_by: groupname
empty_first: true
empty_first_label: '- select group -'
constraints:
- Required
</yaml_form_config>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20110205/d2=
c598ea/attachment.htm
More information about the HTML-FormFu
mailing list