FAQ
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/d2c598ea/attachment.htm

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphtml-formfu @
categoriesperl, catalyst
postedFeb 5, '11 at 3:17p
activeFeb 5, '11 at 3:17p
posts1
users1
websitemetacpan.org...

1 user in discussion

Marc Logghe: 1 post

People

Translate

site design / logo © 2022 Grokbase