[Catalyst] How to display a single HTML::Widget form field in a TT2 template?
Hello all, Sorry again if this is spelled out somewhere that I'm missing. I'm getting up to speed with HTML::Widget as used in the Catalyst Tutorial online in the Advanced CRUD section. I would like more control over the layout of my form so I'd like to build a more detailed template than what the examples show. I can't find how to display a certain form field in a TT2 template using the element's name. Can someone provide a quick example of displaying just a single element in a form by name? I think I'm missing something basic here... Thanks much, Ryan ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] More Catalyst Template Toolkit examples?
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. Thanks, Ryan ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] C::C::FormBuilder - self-formbuilder-submitted not set
Hello, Please excuse me if this has already been answered somewhere. I searched the archives and Googled quite a bit before turning to the list. I'm building a form with FormBuilder with my controller containing all the firm field definitions instead of using a .fb file. My problem is when I submit the form I see from debug output that $self-formbuilder-submitted is set to 0 and validate is set to 1. What will cause submitted not to be set after the form is submitted and passes validation? I also noticed that validate returns 1 before the form is submitted for the first time too. Is that by design? Thanks, Ryan ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/