Re: [html-formfu] Displaying 2 forms in the same page

2008-10-16 Thread Andreas Marienborg
On Oct 14, 2008, at 1:32 PM, Carl Franks wrote: 2008/10/14 Andreas Marienborg <[EMAIL PROTECTED]>: On Oct 13, 2008, at 9:10 PM, Matija Grabnar wrote: Andreas Marienborg wrote: Something like that? If no-one objects, I'll commit it tomorrow - andreas That looks very ni

Re: [html-formfu] Displaying 2 forms in the same page

2008-10-16 Thread Andreas Marienborg
On Oct 14, 2008, at 12:24 PM, Matija Grabnar wrote: Andreas Marienborg wrote: More like this? this is untested, and written by memory :p someone might wanna write a test-application based on it? That certainly makes it clearer. (And I'm amazed that I missed the "indicator&qu

Re: [html-formfu] Displaying 2 forms in the same page

2008-10-14 Thread Andreas Marienborg
On Oct 13, 2008, at 9:10 PM, Matija Grabnar wrote: Andreas Marienborg wrote: Something like that? If no-one objects, I'll commit it tomorrow - andreas That looks very nice, but, if you'll permit me an observation, it only covers the part with the rendering of the two forms.

Re: [html-formfu] Displaying 2 forms in the same page

2008-10-13 Thread Andreas Marienborg
=head2 Multiple forms using Catalyst::Controller::HTML::FormFu Sometimes you need to display multiple forms on a single page. If you try to use FormConfig on several actions in a chain, or similar, they all use $c->stash->{form} to store the form, hence you only get the last form. One way to wor

Re: [html-formfu] Displaying 2 forms in the same page

2008-10-09 Thread Andreas Marienborg
On Oct 5, 2008, at 6:01 PM, Octavian Rasnita wrote: Hi, I am working on a Catalyst app, and I need to display a login form in every page, (which could be shown or it could be replaced with a "logout" button or link). In some pages I also need to display a second form and if I use

[html-formfu] default values and submitted

2008-07-22 Thread Andreas Marienborg
Hey Stumbled upon something strange today. My pattern (pseudo) for most formfu things is this: sub create : bla FormEtc{ my $obj : Stashed = $c->model->new({ parent => $c->req- >param('parent') }); $c->forward('doit'); } sub edit : blah FormEtc { my $obj : Stashed = $c->model->f

Re: [html-formfu] next release

2008-06-05 Thread Andreas Marienborg
On Jun 5, 2008, at 7:06 PM, Carl Franks wrote: 2008/6/5 Andreas Marienborg <[EMAIL PROTECTED]>: On Jun 5, 2008, at 4:42 PM, Carl Franks wrote: 2008/6/5 Moritz Onken <[EMAIL PROTECTED]>: Hi Carl, when do you plan the next release? 0.02004 is dated 22 Jan 2008. What is missin

Re: [html-formfu] next release

2008-06-05 Thread Andreas Marienborg
On Jun 5, 2008, at 4:42 PM, Carl Franks wrote: 2008/6/5 Moritz Onken <[EMAIL PROTECTED]>: Hi Carl, when do you plan the next release? 0.02004 is dated 22 Jan 2008. What is missing to release the next one? I'll help if I can :) * need to document that HTML::FormFu::Model::DBIC is now in a st

Re: [html-formfu] Patch to allow to provide a callback to "when" inside a Constraint

2008-05-27 Thread Andreas Marienborg
Could you make it so a callback also could be specified via the config- files? Since now it seems to expect a coderef, but perhaps a string pointing at a sub could also be allowed, or a class-name which should implement some method? - andreas On May 27, 2008, at 12:50 AM, Michele Beltrame w

Re: [html-formfu] Class names

2007-06-06 Thread Andreas Marienborg
Alan Hicks wrote: Carl Franks wrote: On 06/06/07, Alan Hicks <[EMAIL PROTECTED]> wrote: Is there a reason why class names have spaces? In the vertically aligned example, the first Text element has a class "text label" which appears to go against http://www.w3.org/TR/REC-CSS2/ which only allows

[html-formfu] Question about load_config_files and order of elements

2007-05-13 Thread Andreas Marienborg
Hello I have just started playing with HTML::FormFu, and find it rather enjoyable :) I have a few questions though. As far as I can understand, one is supposed to be able to split a form over several config-files? How does one maintain order of fields in such an event? I tried the followin

[html-formfu] PATCH: configurable forms directory.

2007-05-13 Thread Andreas Marienborg
Attached is a svk patch for allowing the path 'root/forms' to be configured. I don't see a reason for having it under root, so I want it outside it, hence I would like to be able to configure it. It also corrects something which I would call a small flaw, where it would append the extension on