[Catalyst] C::C::FormBuilder

Neil de Carteret n3dst4 at gmail.com
Sun Jan 14 18:56:36 GMT 2007


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.



More information about the Catalyst mailing list