Re: [Catalyst] C::C::FormBuilder debug noise...

2007-05-07 Thread Juan Camacho
On 5/7/07, Matt S Trout <[EMAIL PROTECTED]> wrote: On Mon, May 07, 2007 at 12:09:49PM -0400, Juan Camacho wrote: > On 5/7/07, Matt S Trout <[EMAIL PROTECTED]> wrote: > > >in MyApp.pm - you were confusing the 'Controller::Foo' key that specifies > >which

Re: [Catalyst] C::C::FormBuilder debug noise...

2007-05-07 Thread Juan Camacho
On 5/7/07, Matt S Trout <[EMAIL PROTECTED]> wrote: in MyApp.pm - you were confusing the 'Controller::Foo' key that specifies which component MyApp-level config is for and the 'Controller::FormBuilder' key that specifies C::C::FB-specific config options within a controller. The names are sufficie

Re: [Catalyst] CC::FormBuilder woes

2007-04-28 Thread Juan Camacho
On 4/28/07, Richard Jones <[EMAIL PROTECTED]> wrote: Juan Camacho wrote: > Maybe there is an unexpected stash issue. Try to create a minimalist > example (with form, template and controller code) and post here. OK, will do. But would it be easier if I posted the output of Dump

Re: [Catalyst] CC::FormBuilder woes

2007-04-27 Thread Juan Camacho
On 4/27/07, RA Jones <[EMAIL PROTECTED]> wrote: Peter Edwards wrote: If fields is a list reference you need something like [% form.fields.0.label %] http://www.template-toolkit.org/docs/aqua/Manual/Variables.html#Hash_Array_R eferences Oh dear, that works! But it's not what I want as I ca

Re: [Catalyst] C::C::FormBuilder + TT2

2007-02-22 Thread Juan Camacho
On 2/22/07, Ferruccio Zamuner <[EMAIL PROTECTED]> wrote: Ferruccio Zamuner wrote: > Hi > > I'm using TTSite and it renders forms if I call from TT2 [% > form.render %], it doesn't when I try to construct custom form template. > What am I missing? > [% formbuilder.field.myfield.field %] is ok! >

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-14 Thread Juan Camacho
OK, I've made a small change to the C-C-FormBuilder-Action class that should now help get you on your way. Instead of [% FormBuilder.render %], you'll need to use [% forms.foo.FormBuilder.render %]. BTW, try to make the the stash name 'forms' configurable. I look forward to seeing a final versi

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-14 Thread Juan Camacho
gain if this confusing or long-winded. I have just been pulling my hair out on this one, and I don't think I know the guts of catalyst well enough yet to properly debug and explain what I am seeing. Thank you again for your time! Danny Juan Camacho wrote: > On 2/12/07, Danny Warren <[E

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-13 Thread Juan Camacho
On 2/12/07, Danny Warren <[EMAIL PROTECTED]> wrote: It looks to me that forwarding from one "Form" action to another "Form" action causes the FormBuilder data from the first action to be overwritten. Can you confirm this, or am I doing something wrong here? I am still somewhat green with Cat

Re: [Catalyst] More than one form per page with C::C::FormBuilder?

2007-02-12 Thread Juan Camacho
On 2/12/07, Juan Camacho <[EMAIL PROTECTED]> wrote: On 2/11/07, Danny Warren <[EMAIL PROTECTED]> wrote: > Hey all! > > I am trying to figure out the most elegant way to build/include multiple > forms in one page using Catalyst::Controller::FormBuilder. I'm in a bi

Re: [Catalyst] More than one form per page with C::C::FormBuilder?

2007-02-12 Thread Juan Camacho
On 2/11/07, Danny Warren <[EMAIL PROTECTED]> wrote: Hey all! I am trying to figure out the most elegant way to build/include multiple forms in one page using Catalyst::Controller::FormBuilder. I'm in a bit of rush right now and won't have time to respond today, so I'm pasting a response I had

Re: [Catalyst] FormBuilder + C::C::Formbuilder memory leak fixes

2007-01-31 Thread Juan Camacho
On 1/31/07, Victor Igumnov <[EMAIL PROTECTED]> wrote: To see the impact of the memory leak. Run broken.pl first which will run formbuilder against your installed version. It will create a new formbuilder instance over and over, watch top -o size as it grows to 100-200 megs in just a few seco

Re: [Catalyst] C::C::FormBuilder question

2007-01-30 Thread Juan Camacho
On 1/29/07, Marc Logghe <[EMAIL PROTECTED]> wrote: Actually, the docs give a TT example: [% FormBuilder.render %] And therefore in TT it is not clear whether it is a variable or a package name. Anyways, I tried it with the package name in Mason as well (FormBuilder->render, Catalyst::Controller::

Re: [Catalyst] C::C::FormBuilder question

2007-01-30 Thread Juan Camacho
On 1/30/07, Tobias Kremer <[EMAIL PROTECTED]> wrote: > I was just looking at this last week, as I was using the code as a > basis for a new controller. I suspect that it's never been tested, > because as far as I can tell, it incorrectly reads the config from the > controller object, rather than

Re: [Catalyst] C::C::FormBuilder

2007-01-15 Thread Juan Camacho
On 1/15/07, Victor Igumnov <[EMAIL PROTECTED]> wrote: that is for custom JS code you have added. The default javascript code from formbuilder is omitted when you iterate through the fields. again, I think you are incorrect or I'm misunderstanding what you are saying. I have no customer JS code

Re: [Catalyst] C::C::FormBuilder

2007-01-14 Thread Juan Camacho
On 1/14/07, Victor Igumnov <[EMAIL PROTECTED]> wrote: just a heads up when you iterate through the fields in that fashion you lose all of formbuilder's JS validation code. I think that statement is incorrect. [% form.jshead %] works for me. ___ List:

Re: [Catalyst] C::C::FormBuilder

2007-01-14 Thread Juan Camacho
On 1/14/07, Neil de Carteret <[EMAIL PROTECTED]> wrote: [% field.tag %] Use [% field.field %]. There is a documentation fix not up on CPAN yet. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searcha

Re: [Catalyst] IMPORTANT: Catalyst::Plugin::FormBuilder obsoleted by ::Controller::FormBuilder

2007-01-02 Thread Juan Camacho
On 1/2/07, David Morel <[EMAIL PROTECTED]> wrote: Le 3 janv. 07 à 00:29, Nilson Santos Figueiredo Junior a écrit : > On 1/2/07, Jonathan Rockway <[EMAIL PROTECTED]> wrote: >> Incidentally, I wrote the chapter of my book on FormBuilder the day >> before the Controller was released :) However, u

Re: [Catalyst] IMPORTANT: Catalyst::Plugin::FormBuilder obsoleted by::Controller::FormBuilder

2007-01-02 Thread Juan Camacho
On 1/2/07, Joe Landman <[EMAIL PROTECTED]> wrote: Should we subclass C::C::FB, or put our forms within it? Curious as to the way you recommend using it. Create a base controller that sub-classes it and have your individual controllers inherit from your base. _

Re: [Catalyst] IMPORTANT: Catalyst::Plugin::FormBuilder obsoleted by::Controller::FormBuilder

2007-01-02 Thread Juan Camacho
On 1/2/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: Oh, too bad. I have tried installing it under Windows, but I couldn't. It requires Test::WWW::Mechanize::Catalyst. I have installed this module using ppm, but if I run it, it breaks with the error telling that Test::WWW::Mechanize is require

Re: [Catalyst] C::C::FormBuilder and custom template

2007-01-02 Thread Juan Camacho
On 1/2/07, Goetz Bock <[EMAIL PROTECTED]> wrote: On Mon, Dec 11 '06 at 10:23, Juan Camacho wrote: > On 12/11/06, Goetz Bock <[EMAIL PROTECTED]> wrote: > > > >When I build my TT2 Template accourding to the docs, I'm unable to > >submit it, as the hid

Re: [Catalyst] Catalyst::Controller::FormBuilder config problem

2006-12-21 Thread Juan Camacho
On 12/21/06, Ulrich Leodolter <[EMAIL PROTECTED]> wrote: Hi, The config method as described in Catalyst::Controller::FormBuilder doesn't work for me. in MyApp.pm RTM. You have the config options in the wrong place. Put them in your Controller class -- not in MyApp.pm. I recommend you crea

[Catalyst] [Announce] Catalyst::Controller::FormBuilder

2006-12-14 Thread Juan Camacho
This is a rewrite of Catalyst::Plugin::FormBuilder which is now deprecated. http://tinyurl.com/ykpgl5 Key features include: * Support for Mason and HTML::Template in addition to Template Toolkit. * Greater control over stash and method names to avoid collision * Compatibility with Catalyst::P

Re: [Catalyst] C::C::FormBuilder and localization

2006-12-11 Thread Juan Camacho
On 12/11/06, Goetz Bock <[EMAIL PROTECTED]> wrote: Dear list, I'm triing to build a localisable catalyst app, using C::C::FormBuilder. But I'm not able to get it to work: - i could use c->localize to translate my forms, but using custom templates does now work (see other mail) - and i would

Re: [Catalyst] C::C::FormBuilder and custom template

2006-12-11 Thread Juan Camacho
On 12/11/06, Goetz Bock <[EMAIL PROTECTED]> wrote: Dear list, as I'm not totaly sure wether to try the catalyst or the formbuilder ML, I choose the catalyst ML, as it's probably a problem with (the docs of) C::C::FormBuilder. I'm using the SVN version of C::C::FormBuilder, revision 5783. When

Re: [Catalyst] Catalyst::Controller::FormBuilder Patch

2006-12-02 Thread Juan Camacho
On 12/2/06, Victor Igumnov <[EMAIL PROTECTED]> wrote: The issue: If Root.pm's controller is subclassed from Catalyst::Controller::FormBuilder it *demands* for Catalyst::Controller::FormBuilder::Action::TT::RenderView. The solution: This patch, provide Catalyst::Controller::FormBui

Re: [Catalyst] Calling form plugin authors: these should not be plugins

2006-11-22 Thread Juan Camacho
On 11/20/06, Matt S Trout <[EMAIL PROTECTED]> wrote: Please can the authors or current maintainers of at least - C::P::FormValidator C::P::FormValidator::Simple C::P::FormBuilder C::P::HTML::Widget take a long hard look at their code, and if you can't find a reason this *has* to be a plugin, pl

[Catalyst] Dynamically adding ActionClass

2006-10-06 Thread Juan Camacho
I have an existing catalyst plugin where I would like to set a stash item after the Controller is called but before the View is executed. One way of doing this is by simply creating a custom ActionClass that sets the stash item. Is there a way to dynamically add an ActionClass from within the plug