<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 3, 2008, at 3:52 AM, Ryan Grace wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi All,<br><br>I'm working my way through the Catalyst tutorial and am currently in Part* Advanced CRUD.&nbsp; In this section HTML::Widget is introduced, along with examples of using TT2 with H::W.&nbsp; <br><br>One line in an example of a TT2 template near the bottom of the page uses:<br><br><pre>[% FOREACH element = widget_result.elements %]<br><span style="font-family: arial;"><br><br>I'm having a hard time figuring this out because I can't find mention of the <br>.elements method anywhere.<br><br>Does someone have a pointer to more advanced examples of using TT2 with H::W and Catalyst?<br><br>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.<br></span></pre></blockquote></div><br><div>Your widget_result is an object of the class HTMl::Widget::Result.</div><div><br></div><div><a href="http://cpansearch.perl.org/~cfranks/HTML-Widget-1.11/lib/HTML/Widget/Result.pm#elements">http://cpansearch.perl.org/~cfranks/HTML-Widget-1.11/lib/HTML/Widget/Result.pm#elements</a></div><div><br></div><div>I would recommend trying to use for instance HTML::FormFu instead of HTML::Widget, as HTML::Widget is no longer activly maintained</div><div><br></div><div><br></div><div>- andreas</div><div><br></div></body></html>