On May 3, 2008, at 3:52 AM, Ryan Grace wrote:

Hi All,

I'm working my way through the Catalyst tutorial and am currently in Part* Advanced CRUD. In this section HTML::Widget is introduced, along with examples of using TT2 with H::W.

One line in an example of a TT2 template near the bottom of the page uses:

[% FOREACH element = widget_result.elements %]


I'm having a hard time figuring this out because I can't find mention of the
.elements method anywhere.

Does someone have a pointer to more advanced examples of using TT2 with H::W and Catalyst?

Or a pointer to documentation about the available options in C::P::H::W? .elements isn't mentioned in the H::W documentation anywhere that I can find.

Your widget_result is an object of the class HTMl::Widget::Result.

http://cpansearch.perl.org/~cfranks/HTML-Widget-1.11/lib/HTML/Widget/Result.pm#elements

I would recommend trying to use for instance HTML::FormFu instead of HTML::Widget, as HTML::Widget is no longer activly maintained


- andreas

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to