Re: [html-formfu] Re: Multiple inheritence with FormFu Catalyst Controllers

2009-03-31 Thread Moritz Onken
Am 01.04.2009 um 00:50 schrieb Mario Minati: Hi Moritz, I like your Controller very much. Just some questions: Do you know if it can handle uploads with the Ext ux SwfUpload? Probably no as the code of handle_uploads suggests. I have no Idea how SwfUpload works. AFAIK it allows to upload m

Re: [html-formfu] Re: Multiple inheritence with FormFu Catalyst Controllers

2009-03-31 Thread Mario Minati
Hi Moritz, I like your Controller very much. Just some questions: Do you know if it can handle uploads with the Ext ux SwfUpload? Probably no as the code of handle_uploads suggests. Line 134 is: $object = $object->$self->config->{default_rs_method}; Is that correct? It looks a bit to pe

Re: [html-formfu] Different attributes for the first record in a repeatable block

2009-03-31 Thread Ascii King
That works great! Thank you. How do I count the number of elements returned by the get_all_element function? $form->get_all_element({ type => Repeatable }) If I display the variable, I can see that I get four elements, but I don't know how to count them with code. Carl Franks wrote: 2009/3

Re: [html-formfu] How do you handle "change password" forms?

2009-03-31 Thread Moritz Onken
Hi Carl, I played around with empty_rows a little and noticed that it is not possible to set empty_rows: 0. There will always be a new empty row. is this behaviour intended? Also, is it still possible to add "as many rows as I like" without setting empty_rows: or something? Is it st

[html-formfu] HTML::FormFu::Preload - errors

2009-03-31 Thread Stephen Shorrock
Hi I wish to adopt FormFu for a catalyst application but have come across some issues with performance. In an attempt to speed up page loads I have decided to use HTML::FormFu::Preload and have a use statement in my MyApp.pm file. The problem is that now I seem to be getting error messages in my

Re: [html-formfu] Re: Multiple inheritence with FormFu Catalyst Controllers

2009-03-31 Thread Moritz Onken
Hi Mario, I wrote a Catalyst controller which might be worth looking at for you. It handles all kind of REST requests using formfu config files. For each kind of request there is an extra file. I added a few bits of documentation to it. It's currently in development for a new project I'm w

[html-formfu] Re: Multiple inheritence with FormFu Catalyst Controllers

2009-03-31 Thread Mario Minati
There is also an other error, that makes me believe, that __PACKAGE__->config() of 'Catalyst::Controller::REST' isn't called correctly: [warn] Use of uninitialized value in hash element at /usr/local/share/perl/5.8.8/Catalyst/Controller/REST.pm line 391. Greets, Mario Minati Am Dienstag 31 M

[html-formfu] Multiple inheritence with FormFu Catalyst Controllers

2009-03-31 Thread Mario Minati
Hi, I would like to create a Catalyst Controller which inherits from Catalyst::Controller::HTML::FormFu::ExtJS and Catalyst::Controller::REST. I did it as described in Catalyst::Upgrading: package glue::Controller::Ext::Form; use strict; use warnings; use Moose; BEGIN { extends '

Re: [html-formfu] How do you handle "change password" forms?

2009-03-31 Thread Carl Franks
mortiz++ Patch applied at r1412. btw, if you try running Model-DBIC from svn, be aware that 'new_empty_row' + 'new_empty_row_multi' are deprecated. They still work - they just spew warnings. The docs are partly updated, but I've still got un-checked-in changes that I'm working on. As soon as the

Re: [html-formfu] Different attributes for the first record in a repeatable block

2009-03-31 Thread Carl Franks
2009/3/30 Ascii King : >> I suspect what's happening here is that the rep blocks aren't getting >> the 'name' copied over. >> If you use Data::Dumper, you should be able to confirm that. >> If that's the case, could you commit a fix? >> >> Cheers, >> Carl >> > > So, I'm not  a great programmer, bu

Re: [html-formfu] How do you handle "change password" forms?

2009-03-31 Thread Moritz Onken
dbic.diff Description: Binary data Have fun :-) Am 31.03.2009 um 10:00 schrieb Carl Franks: 2009/3/30 Moritz Onken : Hi, I have a pretty large form where you can change the password using two password fields which have to match if you want to change the password. Problem right now i

Re: [html-formfu] How do you handle "change password" forms?

2009-03-31 Thread Carl Franks
2009/3/30 Moritz Onken : > Hi, > > I have a pretty large form where you can change the password using two > password fields which have to match if you want to change the password. > > Problem right now is, that these password fields get sent with an empty > value and Model::DBIC inserts those empty

Re: [html-formfu] How do you handle "change password" forms?

2009-03-31 Thread Jens Schwarz
> On Mon, Mar 30, 2009 at 8:28 AM, Moritz Onken > wrote: > > I have a pretty large form where you can change the password using two > > password fields which have to match if you want to change the password. > > I was trying to solve this same thing myself this weekend (on an admin > user edit pa