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

2007-05-07 Thread Marcello Romani
Juan Camacho ha scritto: 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 component MyApp-

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 component MyApp-level config is for and the

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

2007-05-07 Thread Matt S Trout
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 component MyApp-level config is for and the 'Controller::FormBuilder' > >key that specifies C::

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] C::C::FormBuilder debug noise...

2007-05-07 Thread Matt S Trout
On Mon, May 07, 2007 at 11:55:59AM +0200, Marcello Romani wrote: > >Not only does this work, but I find it more convenient specifying > >formbuilder config options in one place rather than in every controller > >that uses CCF. Hope it works for you. > > Damn, it works!! > > I'll re-read the doc

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

2007-05-07 Thread Marcello Romani
RA Jones ha scritto: Marcello Romani wrote: RA Jones ha scritto: It looks like your output is showing both debug1 and debug2 levels, which suggests your fb config settings are not being used. Did you place That's what I thought too. Where do you put the "debug" option ? I tried this: pack

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

2007-05-07 Thread Marcello Romani
RA Jones ha scritto: Marcello Romani wrote: RA Jones ha scritto: It looks like your output is showing both debug1 and debug2 levels, which suggests your fb config settings are not being used. Did you place That's what I thought too. Where do you put the "debug" option ? I tried this: pack

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

2007-05-07 Thread RA Jones
Marcello Romani wrote: RA Jones ha scritto: It looks like your output is showing both debug1 and debug2 levels, which suggests your fb config settings are not being used. Did you place That's what I thought too. Where do you put the "debug" option ? I tried this: package MyApp::Controller:

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

2007-05-07 Thread Marcello Romani
RA Jones ha scritto: Marcello Romani wrote: Hmm, I tried your code (which afaikt should work) but putting 0,1 or 2 doesn't make any difference in the type or amount of debug messages the app is emitting. I'll double check my code and report. Thanks for now. It looks like your output is sh

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

2007-05-06 Thread RA Jones
Marcello Romani wrote: Hmm, I tried your code (which afaikt should work) but putting 0,1 or 2 doesn't make any difference in the type or amount of debug messages the app is emitting. I'll double check my code and report. Thanks for now. It looks like your output is showing both debug1 and

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

2007-05-04 Thread Marcello Romani
RA Jones ha scritto: Marcello Romani wrote: Hi all, I have a problem with Catalyst::Controller::FormBuilder. It prints way too much debug information, filling up my consolle's screen buffer :-) If I turn off Catalyst debgging by omitting the -Debug option the debug messages disappear, but

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

2007-05-04 Thread Marcello Romani
RA Jones ha scritto: Marcello Romani wrote: Hi all, I have a problem with Catalyst::Controller::FormBuilder. It prints way too much debug information, filling up my consolle's screen buffer :-) If I turn off Catalyst debgging by omitting the -Debug option the debug messages disappear, but

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

2007-05-03 Thread RA Jones
Marcello Romani wrote: Hi all, I have a problem with Catalyst::Controller::FormBuilder. It prints way too much debug information, filling up my consolle's screen buffer :-) If I turn off Catalyst debgging by omitting the -Debug option the debug messages disappear, but so do the Catalyst on

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

2007-05-02 Thread Marcello Romani
Hi all, I have a problem with Catalyst::Controller::FormBuilder. It prints way too much debug information, filling up my consolle's screen buffer :-) If I turn off Catalyst debgging by omitting the -Debug option the debug messages disappear, but so do the Catalyst ones, which I instead want

[Catalyst] C::C::FormBuilder

2007-04-05 Thread Denis Frolov
Hello, I am new to the Catalyst framework and am getting used to it. I have read through Catalyst::Controller::FormBuilder manual at CPAN and Tried to use the form builder, but even simpliest things from examples do not work. Could you, please, explain if I am doing something wrong? I have writ

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 + TT2

2007-02-22 Thread Ferruccio Zamuner
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! Another question about Catalyst and FormBuilder: On latest FormBu

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

2007-02-21 Thread Ferruccio Zamuner
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? -- in Root.pm -- sub modulo : Local Form { my ( $self, $c ) = @_; my $form = $self->formbuilder; $form->prepare; $c->stash->{fo

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 Danny Warren
Yep, that sequence of events is exactly what I am seeing. Hooray, I am not crazy! (well, on this one thing...) One way I was thinking of getting around this was to do the same thing you suggested with the template vars for the $controller->_formbuilder data - create named aliases (at step 1

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

2007-02-14 Thread Juan Camacho
Doubt it has anything to do with your environment. I thought I had tested it a while back when helping someone else, but maybe something was overlooked since I never got a final word back from the guy I was helping. I think I have an idea of what might be wrong -- it has to do with the following

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

2007-02-14 Thread Danny Warren
Apologies, I should have mentioned that I was using the controller code from my first mail. I have attached my test controller as Test.pm. Thank you for your explanation about how $c->formbuilder works with forwards, that makes some of what I am seeing make more sense (and that I had some inc

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] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-12 Thread Danny Warren
(Started a new thread, since your previous response answered my basic questions, but I think my problem is something else entirely) I used your below sample code to cook up something that supports a naming scheme for multiple form variables in TT, but I am still having issues. I tracked it do

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

2007-01-31 Thread Carl Franks
On 30/01/07, Matt S Trout <[EMAIL PROTECTED]> wrote: On 30 Jan 2007, at 08:48, Carl Franks 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 con

RE: [Catalyst] C::C::FormBuilder question

2007-01-31 Thread Marc Logghe
> -Original Message- > From: Juan Camacho [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 30, 2007 6:22 PM > To: The elegant MVC web framework > Subject: Re: [Catalyst] C::C::FormBuilder question > > On 1/29/07, Marc Logghe <[EMAIL PROTECTED]> wrote: >

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 Matt S Trout
On 30 Jan 2007, at 08:48, Carl Franks 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 the application

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

2007-01-30 Thread Matt S Trout
On 30 Jan 2007, at 09:07, Tobias Kremer 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 the appli

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 question

2007-01-30 Thread Tobias Kremer
> 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 the application object. Yeah, I stumbled across this t

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

2007-01-30 Thread Carl Franks
On 29/01/07, Marc Logghe <[EMAIL PROTECTED]> wrote: Hi all, I am lost. In my conf I have: # configuration of FormBuilder Controller::FormBuilder: method_name: form template_type: Mason stash_name: form obj_name: fb form_suffix: fb attr_name: Form form_path: __path_to

RE: [Catalyst] C::C::FormBuilder question

2007-01-29 Thread Marc Logghe
> > Couldn't render component "/moe/mol_3D_conv_form" - error > was "Can't > > call method "render" on an undefined value ... > > According to the docs, you need to call render on the package: > ><% FormBuilder->render %> Actually, the docs give a TT example: [% FormBuilder.render %] And th

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

2007-01-29 Thread Jonathan Rockway
Marc Logghe wrote: > Couldn't render component "/moe/mol_3D_conv_form" - error was "Can't > call method "render" on an undefined value ... According to the docs, you need to call render on the package: <% FormBuilder->render %> -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name

[Catalyst] C::C::FormBuilder question

2007-01-29 Thread Marc Logghe
Hi all, I am lost. In my conf I have: # configuration of FormBuilder Controller::FormBuilder: method_name: form template_type: Mason stash_name: form obj_name: fb form_suffix: fb attr_name: Form form_path: __path_to(forms)__ In the mason template: <% $form->render %> <%

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

2007-01-27 Thread Ferruccio Zamuner
Juan Camacho wrote: 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

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 Victor Igumnov
that is for custom JS code you have added. The default javascript code from formbuilder is omitted when you iterate through the fields. Try it out for your self. -Victor On Jan 14, 2007, at 4:12 PM, Juan Camacho wrote: On 1/14/07, Victor Igumnov <[EMAIL PROTECTED]> wrote: just a heads up w

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] C::C::FormBuilder

2007-01-14 Thread Victor Igumnov
just a heads up when you iterate through the fields in that fashion you lose all of formbuilder's JS validation code. -Victor On Jan 14, 2007, at 10:56 AM, Neil de Carteret wrote: Sunday night brain-strain. I'm trying out C::C::FormBuilder with TT. The form object works, and [% FormBuilde

[Catalyst] C::C::FormBuilder

2007-01-14 Thread Neil de Carteret
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 %]

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 hidden "_submitted" field is not generated and > >

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

2007-01-02 Thread Goetz Bock
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 hidden "_submitted" field is not generated and > >form->submitted() always is false. > > > Under TT2

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

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

2006-12-11 Thread Goetz Bock
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 still have to somehow translate the messages - i cou

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

2006-12-11 Thread Goetz Bock
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 I build my TT2 Template accourding to the docs, I'm