Juan Camacho wrote:
On 4/27/07, RA Jones <[EMAIL PROTECTED]> wrote:
The CGI::FormBuilder::Template::TT2 documentation distinctly gives the
impression I can retrieve fields from the form.field hash:
You can access individual fields via the field variable. For a field
named... The field data is in...
-------------------- -----------------------
job [% form.field.job %]
size [% form.field.size %]
email [% form.field.email %]
Then use eg form.field.location.label in the template. I have done this
previously using CGI::FormBuilder in a stand-alone environment, so I
must be
missing something obvious here.
Hmm, that is odd. There is actually a unit test that is included to
test that specific functionality out.
http://search.cpan.org/src/JCAMACHO/Catalyst-Controller-FormBuilder-0.03/t/root/src/tt2/books/basic.tt
Maybe there is an unexpected stash issue. Try to create a minimalist
example (with form, template and controller code) and post here.
OK, will do. But would it be easier if I posted the output of
Dumper.dump(form)? Also just realised I'm using CCF 0.02 - could that
affect it (can't update it at the moment). Changes file doesn't suggest
it would.
--
Richard Jones
Leeds, UK
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/