[Catalyst] C::C::FormBuilder
Victor Igumnov
victori at lamer0.com
Sun Jan 14 20:27:25 GMT 2007
just a heads up when you iterate through the fields in that fashion
you lose all of formbuilder's JS validation code.
-Victor
On Jan 14, 2007, at 10:56 AM, Neil de Carteret wrote:
> Sunday night brain-strain. I'm trying out C::C::FormBuilder with TT.
>
> The form object works, and
>
> [% FormBuilder.render %]
>
> in the TT produces a dinky little form. I need to handle a particular
> field a particular way, so I'm iterating over the fields with [%
> FOREACH field IN formbuilder.fields %].
>
> [% field.label %] works fine, and I'm seeing a list of my fields. [%
> formbuilder.start %] and [% formbuilder.end %] produce expected
> output. However,
>
> [% field.tag %]
>
> produces no output, for any field. The final output is:
>
> <form action="" method="get"><input id="_submitted" name="_submitted"
> type="hidden" value="2" />
> <div id="form">
>
> <div id="location">
> <div class="label">
> Location
> </div>
> <div class="field">
>
>
> </div>
> </div>
>
> <div id="timezone">
> <div class="label">
> Timezone
> </div>
> <div class="field">
>
> </div>
> </div>
>
> <div id="submit"><input id="_submit" name="_submit" type="submit"
> value="Submit" /></div>
>
> <div id="reset"></div>
> </div>
> </div>
> </form>
>
> Where, obviously, I'm expecting some honking great <select>s inside
> those <div class="field">s.
>
> I'd be very grateful if someone could lend me a spare Clue.
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list