I've only recently begun to use FormFu, and this is my first post, so let me
know if I need to supply more/different/less info.
I'm trying to configure and populate a Select widget in my Catalyst app, but
keep getting the "need a schema or context" error.
My ultimate goal is to initially show the Select populated with a list of
Projects from which the user makes selection; then a second Select displays
showing a list of available filesystem directories.
# Some specs:
Catalyst -- 5.7014
DBIx::Class -- 0.08012
HTML::FormFu -- 0.03007
# Table Class File:
package MyApp::Schema::Result::Projects;
<snip>
__PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp",
"Core");
__PACKAGE__->table("projects");
__PACKAGE__->add_columns(
"id", { data_type => "INTEGER", is_nullable => 0, size => undef },
"rel_tag", { data_type => "TEXT", is_nullable => 0, size => undef },
<snip>
# project_list_ff.yml
---
auto_fieldset:
legend: Select Project
indicator: submit
elements:
- type: Select
name: project
label: Select Project
model_config:
resultset: Projects
condition:
active: 1
filter: TrimEdges
filter: HTMLEscape
- type: Submit
name: submit
value: Submit
# Controller:
package MyApp::Controller::Projects;
<snip>
sub list : Local :FormConfig('projects/project_list_ff.yml') {
my ( $self, $c ) = @_;
my $form = $c->stash->{form};
<snip>
$c->stash->{template} = 'projects/list.tt2';
}
# EOF
I am not sure how to troubleshoot this, and would appreciate any help.
Thanks!
/dennis
_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu