[html-formfu] MooseX-ChainedAccessors

2011-03-01 Thread Moritz Onken
Hi, finally I was able to obtain maintainer ship for this module and releases a new version just now. Please fetch it and see if this resolves any problems with that module. It is also compatible with the upcoming Moose 2 release. http://search.cpan.org/dist/MooseX-ChainedAccessors/ Cheers,

Re: [html-formfu] Losing default value on update

2011-02-09 Thread Moritz Onken
Hi Carl, as mentioned in https://rt.cpan.org/Public/Bug/Display.html?id=55087 the fix is pretty easy. I'd suggest you simply include the attribute trait in HTML::FF itself. Cheers, moritz Am 09.02.2011 um 10:04 schrieb Carl Franks: On 9 February 2011 03:38, Charlie Garrison

Re: [html-formfu] ExtJS - metaData - Grid population via REST

2010-11-17 Thread Moritz Onken
Hi, I couldn't find documentation for the header attribute in the field definition. Is this actually working? Ref: http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Field Cheers, moritz Am 17.11.2010 um 13:27 schrieb Benjamin Martin: Hello, I pretty new to ExtJS and the Catalyst

Re: [html-formfu] ExtJS - Custom Elements

2010-11-10 Thread Moritz Onken
Hi Ben, could you please post the source of your custom element and the source of the config file? Using something like: - name: foo type: ExtJS::Time will always require both a package HTML::FormFu::Element::ExtJS::Time and a package HTML::FormFu::ExtJS::Element::ExtJS::Time. Both of

Re: [html-formfu] Bug?

2010-06-25 Thread Moritz Onken
Hi, did you try constraints Required /constraints (omitting the type) cheers, mo Am 25.06.2010 um 10:28 schrieb Octavian Rasnita: Hi, I have a form with the following element: elements name date_time type DateTime label Date: constraints type Required /constraints /elements

Re: [html-formfu] FormFu::ExtJS Tabs/Panels

2010-03-24 Thread Moritz Onken
Hi, there is an ExtJS::Panel element. Check out the test http://cpansearch.perl.org/src/PERLER/HTML-FormFu-ExtJS-0.075/t/elements/panel.yml and http://cpansearch.perl.org/src/PERLER/HTML-FormFu-ExtJS-0.075/t/elements/panel.t for an example. cheers, mo On Thu, 25 Mar 2010 03:40:58 +1100, Damon

Re: [html-formfu] Do you have plans about Moosification?

2010-03-03 Thread Moritz Onken
I was thinking about HTML::FormFoose :-) Am 03.03.2010 um 20:43 schrieb Alexander Hartmaier: It's called HTML::FormHandler ;-) -- Best regards, Alex Am Dienstag, den 02.03.2010, 03:29 +0100 schrieb Oleg Kostyuk: Hello all, Do you have plans about Moosification? At least, this

Re: [html-formfu] Fix for creating a belongs_to related row

2010-03-01 Thread Moritz Onken
: On 20 February 2010 17:10, Moritz Onken on...@houseofdesign.de wrote: Hi, this is a patch to allow a form to create a row in a belongs_to related table. This was not working till now. The Band.pm class had actually a wrong relationship set which made it look like it would work. I also added

Re: [html-formfu] Do you have plans about Moosification?

2010-03-01 Thread Moritz Onken
At least I have :-) I already started with a proof of concept which showed that it's feasible and even comes with a performance improvement. Though, this is a lot of work and new tests need to be written to make sure that there is no backwards incompatibility. As soon as Carl switches to git

Re: [html-formfu] Is there (semi-) official git repo?

2010-03-01 Thread Moritz Onken
Hi, Carl planned to move his projects to github, IIRC. I'd love to see a github repo, makes live so much easier... cheers, mo On Tue, 2 Mar 2010 04:16:38 +0200, Oleg Kostyuk cub.ua...@gmail.com wrote: Hello all, Is there (semi-) official git repo for project? If no, do you have plans to

Re: [html-formfu] Re: Always HTTP Method POST

2010-02-23 Thread Moritz Onken
If you submit a form which fails on a constraint other than RequestToken, correct the input value, then submit again the second submission will fail for the RequestToken constraint. The Plugin seems to remove the token regardless of whether there are other errors in the form or not meaning

Re: [html-formfu] Fix for creating a belongs_to related row

2010-02-22 Thread Moritz Onken
Done. On Sun, 21 Feb 2010 21:09:31 +, Carl Franks fireart...@gmail.com wrote: On 20 February 2010 17:10, Moritz Onken on...@houseofdesign.de wrote: Hi, this is a patch to allow a form to create a row in a belongs_to related table. This was not working till now. The Band.pm class had

[html-formfu] Fix for creating a belongs_to related row

2010-02-20 Thread Moritz Onken
Hi, this is a patch to allow a form to create a row in a belongs_to related table. This was not working till now. The Band.pm class had actually a wrong relationship set which made it look like it would work. I also added a test to confirm my findings. I can submit that patch to the repo if

Re: [html-formfu] Re: Always HTTP Method POST

2010-02-20 Thread Moritz Onken
The only way to prevent CSRF attacks is to use one-time tokens. Catalyst::Controller::HTML::FormFu supports that already. Have a look at http://search.cpan.org/~cfranks/Catalyst-Controller-HTML-FormFu-0.06001/lib/Catalyst/Controller/HTML/FormFu.pm#request_token_enable. Don't rely on the

[html-formfu] Re: Quick FormFu Question

2010-02-10 Thread Moritz Onken
On Wed, 10 Feb 2010 12:59:46 -0500, hkcl...@gmail.com wrote: Hi Moritz, I'm trying to make use of the very handy Label Element that you added a while back to FormFu. Thanks for doing that. A quick question if you don't mind: is there a way to have it not escape the content? Sort of like

Re: [html-formfu] dynamically filter a Select list

2009-09-15 Thread Moritz Onken
Am 16.09.2009 um 03:28 schrieb Charlie Garrison: Good morning, On 15/09/09 at 4:22 PM -0400, Ascii King t...@swattermatter.com wrote: This doesn't seem to do anything. I think it is supposed to load a set of functions into the header, but when I check the in-browser source code,

Re: [Fwd: Re: [html-formfu] RFC - Transactions for DBIC updates]

2009-09-11 Thread Moritz Onken
, Mario Moritz Onken schrieb: Hi Mario, this a good idea. I was thinking about it anyway. Go ahead and add it to the (github) repo. cheers, moritz Am 09.09.2009 um 23:07 schrieb Mario Minati: Hi Moritz, I now found out, that Cx::C::ExtJS::REST invokes DBIC update itself, so I've to move

Re: [html-formfu] RFC - Transactions for DBIC updates

2009-09-02 Thread Moritz Onken
Hi Mario, as far as I remember nested transactions result in a noop. Which means you can nest transactions and nothing bad will happen. Other than that: what's wrong with $schema-txn_do { $form-model- update } ? cheers, moritz Am 02.09.2009 um 14:10 schrieb Mario Minati: Hi @all, I

Re: [html-formfu] FormFu::Model subclassing

2009-08-24 Thread Moritz Onken
And lastly ;) create() is calling $form-render() - this shouldn't be necessary - and really shouldn't be happening in a method that should just be processing user-submitted data. Hi Carl, I fixed HashRef to process data from $form-input if the form was submitted. However, create still

Re: [html-formfu] FormFu::Model subclassing

2009-08-18 Thread Moritz Onken
Am 18.08.2009 um 11:46 schrieb Carl Franks: 2009/8/17 Nick Spacek nick.spa...@gmail.com: I tried this as well, and Dumper-ed the result of the update. It comes back with an empty title field! :) I can confirm this - the HashRef model doesn't work as I would expect it to. In both the

Re: [html-formfu] FormFu::Model subclassing

2009-08-17 Thread Moritz Onken
Am 17.08.2009 um 14:49 schrieb Nick Spacek: (I haven't run this code recently) I'm not trying to use Model::HashRef, but this is the test that I tried with it. My assumption is that $f-{ title } would be set after the form is submitted, but dieing there shows it isn't. If I place debug

Re: [html-formfu] FormFu::Model subclassing

2009-08-15 Thread Moritz Onken
Hi, could you please send us some code which demonstrates what exactly is not working for you? Or even better, a test :-) cheers, moritz Am 14.08.2009 um 18:48 schrieb Nick Spacek: When you say the HashRef update() didn't work at all, what were you expecting it to do? And what did it

Re: [html-formfu] adding constraints dynamically

2009-08-15 Thread Moritz Onken
Am 15.08.2009 um 05:47 schrieb Steve Rippl: Hi, I have a Catalyst app with large dynamic forms, most of which gets built programatically with things like ... my $element = $form-element( Text = $form_id ); $element-name($form_id); $element-id($form_id); ... $element-add_attributes( size =

Re: [html-formfu] Model::DBIC: Support for additional rows in m2m rels and link values

2009-08-07 Thread Moritz Onken
Am 07.08.2009 um 10:49 schrieb Carl Franks: 2009/8/6 Moritz Onken on...@houseofdesign.de: hope you had nice holidays :-) eep - how did you know I was back? ;) twitter ;-) I had 2 weeks of paternity leave, and extended it with another 2 weeks of annual leave - quite a break! Here

Re: [html-formfu] Model::DBIC: Support for additional rows in m2m rels and link values

2009-08-07 Thread Moritz Onken
Am 07.08.2009 um 14:56 schrieb Carl Franks: 2009/8/7 Moritz Onken on...@houseofdesign.de: hope you had nice holidays :-) eep - how did you know I was back? ;) twitter ;-) there's nowhere to hide... :) NOWHERE :-) I added TwoNote.pm and made the changes to DBICTestLib and commited

Re: [html-formfu] Model::DBIC: Support for additional rows in m2m rels and link values

2009-08-07 Thread Moritz Onken
Am 07.08.2009 um 15:45 schrieb Carl Franks: 2009/8/7 Moritz Onken on...@houseofdesign.de: I added TwoNote.pm and made the changes to DBICTestLib and commited it. I'm getting a test failure: t/update/nested_repeatable_write.t ... DBIx::Class

Re: [html-formfu] How to restrict retrieved rows in has_many relationships?

2009-08-06 Thread Moritz Onken
Am 06.08.2009 um 08:42 schrieb Mario Minati: michele.gherl...@liceoberchet.it schrieb: michele.gherl...@liceoberchet.it schrieb: Hi Michele, currently I don't think this is possible in the dynamic way you want it. What I don't understand is that materia is a underneath voti. If materia

Re: [html-formfu] HTML::FormFu::ExtJS and CatalystX::Controller:ExtJS uploads

2009-08-03 Thread Moritz Onken
Am 11.07.2009 um 16:29 schrieb Mario Minati: Hi Moritz, your suggestion of just overwriting the hash properties is quite good. How shall we handle the 'only_name' attribute. I wouldn't like to send the decoded name to the render method. Maybe we can send the function name, which shall

Re: [html-formfu] Many-to-Many Relationships and Repeatables

2009-07-25 Thread Moritz Onken
Try to place the select box inside the repeatable box. I don't see any reason why this shouldn't work. moritz Am 23.07.2009 um 01:35 schrieb Greg Coates: Is it possible to use a Repeatable containing Select elements to edit/add rows in a table linked by a many-to-many relationship? All

Re: [html-formfu] empty_rows prevents javascript from creating new rows

2009-07-17 Thread Moritz Onken
Hi, I had the exact same issue. My form config looks now like this: - type: Hidden name: count constraints: - Required - type: Repeatable nested_name: appointment counter_name: count model_config: new_rows_max: 100 elements: ... which seems to work fine as

Re: [html-formfu] HTML::FormFu::ExtJS and CatalystX::Controller:ExtJS uploads

2009-07-05 Thread Moritz Onken
Am 05.07.2009 um 00:32 schrieb Mario Minati: Hi Moritz, I've now uploaded all my recent additions including docs and tests for both modules. All tests pass again on my side. Hi mario, I'm reviewing your changes right now: http://code.google.com/p/html-formfu/source/detail?r=1557: I'd

Re: [html-formfu] new releases uploaded to cpan

2009-07-04 Thread Moritz Onken
Am 03.07.2009 um 20:36 schrieb Carl Franks: I've uploaded new versions of HTML-FormFu and HTML-FormFu-Model-DBIC to CPAN. They're already available on http://search.cpan.org Thanks to everyone who has contributed - and apologies to anyone who has sent patches that haven't been applied yet!

Re: [html-formfu] Setting the action

2009-07-03 Thread Moritz Onken
Am 03.07.2009 um 17:58 schrieb Octavian Râşniţă: When using Catalyst it is recommended to use $c-uri_for('/path/to/ action') because only this way the app would work if it would be put to run on a different location than /. You can use uri_for in the config: action:

Re: [html-formfu] trouble installing HTML::FormFu 0.5000

2009-07-01 Thread Moritz Onken
Hi, long story short: force install it. The tests are broken. Each system has different locale settings. The tests are hard to write because for example a lot of systems (mostly bsd style) think that you have to put the currency in the german locale in front of the value. But this is not

Re: [html-formfu] FF::ExtJS and Label element - bump

2009-06-30 Thread Moritz Onken
-- Weitergeleitete Nachricht -- Betreff: Re: [html-formfu] FormFu::ExtJS Datum: Sonntag 10 Mai 2009 Von: Mario Minati mario.min...@googlemail.com An: HTML Form Creation, Rendering and Validation Framework html-formfu@lists.scsys.co.uk Hi Moritz, I looked at the label element

Re: [html-formfu] ExtJS::REST

2009-06-30 Thread Moritz Onken
Am 13.05.2009 um 00:46 schrieb Mario Minati: Am Dienstag 12 Mai 2009 12:56:39 schrieb Moritz Onken: Doing so the test suite fails in user.t line 50. We expect PUT to return success == '1', but it sends 'true'. That is because we set it once as '\1' and the other time as '1' in ExtJS. Do you

Re: [html-formfu] custom ExtJS element

2009-06-25 Thread Moritz Onken
upload to svn. Greets, Mario Am Mittwoch 24 Juni 2009 14:09:38 schrieb Alexander Hartmaier: Am Montag, den 22.06.2009, 21:02 +0200 schrieb Moritz Onken: Hi Alex, did you try to just use a Text element? - elements: - type: Text attrs: xtype: itemselector I've already

Re: [html-formfu] Bug fix to HTML::FormFu::Model::DBIC delete_if_true

2009-06-05 Thread Moritz Onken
Am 05.06.2009 um 15:56 schrieb Nigel Metheringham: On 5 Jun 2009, at 14:30, Moritz Onken wrote: I think it is FF related because FF::Model::DBIC tries to guess the correct ResultSet by upper casing the first character of the field name. this happens if model_config is defined

Re: [html-formfu] different behavior of H::F::Model::DBIC 0.04002 and 0.04003

2009-05-28 Thread Moritz Onken
Glad it worked four you! I bumped the prerequisite DBIC to 0.081 in the Makefile.PL Is this ok with you, Carl? Am 27.05.2009 um 16:16 schrieb Mike South: On Wed, May 27, 2009 at 6:09 AM, Moritz Onken on...@houseofdesign.de wrote: I probably need the hole cat app. Do you have the latest

Re: [html-formfu] different behavior of H::F::Model::DBIC 0.04002 and 0.04003

2009-05-28 Thread Moritz Onken
Carl Franks: 2009/5/28 Moritz Onken on...@houseofdesign.de: Glad it worked four you! I bumped the prerequisite DBIC to 0.081 in the Makefile.PL Is this ok with you, Carl? That's fine. Is it worth doing another cpan release for this change? Carl

Re: [html-formfu] applying a filter

2009-05-12 Thread Moritz Onken
Am 30.04.2009 um 17:09 schrieb Ascii King: I am unable to figure out what was decided here. I am trying to set up a simple page to accept a new user with an encrypted password. would someone be able to show me what I need to add to my config file, subroutine and my .yml file to make this

Re: [html-formfu] ExtJS::REST

2009-05-11 Thread Moritz Onken
Am 11.05.2009 um 01:24 schrieb Mario Minati: OK I see. I think we can make this the default behaviour. This will cause a database roundtrip but I think it's the best way to make sure that the data we give back is the same as the data the user will get when he requests that item. You

[html-formfu] Model::DBIC: additive mode for many_to_many and multi select fields

2009-05-10 Thread Moritz Onken
Hi Carl, attached is a patch which adds support for add_to_$rel instead of set_$rel for many_to_many relationships and select-like fields. The reason for this is that I want to create a form, where the user can choose a single element from a select box. This element should then be added

Re: [html-formfu] Securely set the account status

2009-05-08 Thread Moritz Onken
use add_valid: $form-add_valid('status', 'Requested'); $form-model-create; # or whatever you are doing Am 08.05.2009 um 18:31 schrieb Ascii King: I should have mentioned, that I am currently doing it this way. my $set_status = $form-get_all_element({ name = 'status' });

Re: [html-formfu] FormFu::ExtJS

2009-05-04 Thread Moritz Onken
to inject data into my database, so oneway. Greets, Mario Minati Am Donnerstag 30 April 2009 12:28:05 schrieb Moritz Onken: Hi Mario, I figured out that the failing test was my fault. It seems like one of my modules was not up to date. The -previous call is now gone and it works ok

Re: [html-formfu] FormFu::ExtJS

2009-04-30 Thread Moritz Onken
method and uploaded that accidently. Greets, Mario Minati Am Sonntag 26 April 2009 13:52:09 schrieb Moritz Onken: Hi Mario, you added a new field NotAField to FF::ExtJS, but no tests. What is the purpose of that field? it sound like a pretty bad hack to me and I don't see a reason why we

Re: [html-formfu] handling repeatable on the javascript side

2009-04-26 Thread Moritz Onken
Hi Carl, do you know Hash::Flatten? I use this in Model::HashRef to convert the form data to a hash. I thought this might be a good thing for your naming scheme too. It could convert a hash with arrayrefs to the fieldnames. One thing to workaround though is that Hash::Flatten starts with

[html-formfu] ExtJS::REST

2009-04-26 Thread Moritz Onken
Hi Mario, I had a quick look at your latest commit to ExtJS::REST. I think we should always call process_on_GET. The fact that I didn't call it was a bug. I removed the config option for that and hard coded process in the GET method. I hope this is fine with you.

[html-formfu] HTML::FormFu::ExtJS 0.070 released

2009-04-21 Thread Moritz Onken
Hi, I just uploaded HTML::FormFu::ExtJS 0.070 to the CPAN. I had to wait for HTML::FormFu 0.04 to be released because we depend heavily on the new Model::HashRef. Changes from 0.05: 0.070 - added ExtJS::Panel - fixed handling of localised attributes - deprecated

[html-formfu] Installing Model::DBIC

2009-04-21 Thread Moritz Onken
Hi Carl, is Model::DBIC incompatible with the current FormFu version? I had trouble installing it. The following test fails: # Failed test 'Options set from the model' # at t/options_from_model/many_to_many_select.t line 51. # Structures begin differing at: #

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-15 Thread Moritz Onken
Try updating Test::WWW::Mechanize::Catalyst first. Am 14.04.2009 um 23:33 schrieb Mario Minati: Am Dienstag 14 April 2009 22:55:33 schrieb Moritz Onken: Hm, interesting. Seems like your test is not following the redirect, though it is present in _headers-location. Does the test pass if you

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

2009-04-15 Thread Moritz Onken
Am 31.03.2009 um 18:23 schrieb 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

Re: [html-formfu] Bug in Model-DBIC (svn)

2009-04-15 Thread Moritz Onken
Am 10.03.2009 um 13:21 schrieb Moritz Onken: Hi Carl, I found a bug in the current svn version of Model-DBIC Attach this patch and see the fireworks in t/default_values/ many_to_many_select.t Index: t/lib/DBICTestLib.pm

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

2009-04-15 Thread Moritz Onken
Am 15.04.2009 um 12:15 schrieb Carl Franks: 2009/3/31 Moritz Onken on...@houseofdesign.de: 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? I've added tests

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

2009-04-15 Thread Moritz Onken
Am 15.04.2009 um 12:45 schrieb Carl Franks: Ah, ok. This isn't down to any change in Model-DBIC. Element::Repeatable-repeat() was doing $count ||= 1; I've removed that, so it allows a count of zero. Carl I guess it didn't make it to 0.04001 ;-) Hope this change does not break anyone's

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-15 Thread Moritz Onken
Am 15.04.2009 um 15:06 schrieb Mario Minati: Updated /Catalyst/ and /Test/ but still the same results. Updating more packages now. I'm still useing perl 5.8.8, that shouldn't be a problem, right? I'm on 5.8.8, too. We can easily change the test to $res = $res-previous if $res-previous;

Re: [html-formfu] Request advice RE FormFu and join tables

2009-04-14 Thread Moritz Onken
Yes there is. Did you read the documentation of HTML::FormFu::Model::DBIC? moritz Am 14.04.2009 um 04:45 schrieb Dennis Daupert: Finding my way around, I thought I'd ask for advice before getting myself in too much trouble ;-) I have several sets of parent / child / join tables in which

Re: [html-formfu] ping moritz: RequestToken

2009-04-14 Thread Moritz Onken
Hi Carl, there is still this failing test t/01basic-token.t which fails. In t/lib/MyApp/Controller/TokenExpire.pm I set a negative expiration time but it get's lost somewhere while the plugin tries to set this expiration time on Element::RequestToken. I made accessors for all those config

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-14 Thread Moritz Onken
Samstag 11 April 2009 21:48:10 schrieb Moritz Onken: Hi Moritz, the suite looks good so far, I just read the code and gives quite important comments ('redirect' :roll:). The suite is not meant to run automatically on make test, right? Maybe we have to tweak Makefile.PL but they should run

Re: [html-formfu] Retrieving TT from FormFu

2009-04-13 Thread Moritz Onken
Are you looking for http://search.cpan.org/~cfranks/HTML-FormFu-0.04000/bin/html_formfu_deploy.pl ? Am 13.04.2009 um 20:16 schrieb Manu Kaul: Hi Mario, Thanks for the response. But I remember there was a command you ran of some sort that actually extracted the TT files for you for a

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-11 Thread Moritz Onken
modules into lib? Currently I have quite some -I options. Happy Easter, Mario Minati Am Freitag 10 April 2009 14:21:02 schrieb Moritz Onken: Hi, I commited the test suite and created a test which is located in t/ rest/user.yml. I think this is a good start for new tests and works pretty good

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-10 Thread Moritz Onken
Hi, I'm currently writing the test suite. If you can wait for a few more hours I'll commit it and we can start testing, yeeha :-) moritz Am 10.04.2009 um 10:44 schrieb Mario Minati: I wanted to step into the test creation for CatalystX::Controller::ExtJS::REST but am wondering how to

Re: [html-formfu] CatalystX::Controller::ExtJS::REST tests

2009-04-10 Thread Moritz Onken
Hi, I commited the test suite and created a test which is located in t/ rest/user.yml. I think this is a good start for new tests and works pretty good so far. I added a few comments to the test so you can understand why certain things happen or don't. I usually run tests like this:

Re: [html-formfu] Highly incorrect manual for HTML::FormFu::Model::DBIC!

2009-04-08 Thread Moritz Onken
Hi, this is already fixed in svn. cheers, moritz Am 08.04.2009 um 08:06 schrieb Alex Povolotsky: Hello! Example in manual for HTML::FormFu::Model::DBIC does not, repeat NOT work properly. --- element: - type: Repeatable nested_name: authors

Re: [html-formfu] Writing Catalyst - FormFu tests

2009-04-08 Thread Moritz Onken
actually know where the lib folder is on my Ubuntu machine. Where is my perl installed do you know? Moritz Onken wrote: Hi, in that test there are two lines: use DBICTestLib 'new_db'; new_db(); Those do create this test.db file. You can simply copy the lib folder inside t/ and call

Re: [html-formfu] nested repeatables not showing data

2009-04-08 Thread Moritz Onken
Never tried a repeatable inside a repeatable. A block element (belongs_to rel) inside a repeatable blocks works. Am 08.04.2009 um 18:27 schrieb Zbigniew Lukasiak: On Wed, Apr 8, 2009 at 5:01 PM, Ascii King t...@swattermatter.com wrote: I am using FormFu with Catalyst to load a very complex

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

2009-04-05 Thread Moritz Onken
, so not much time yet. Am Mittwoch 01 April 2009 07:43:08 schrieb 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

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

2009-04-05 Thread Moritz Onken
Creation, Rendering and Validation Framework html-formfu@lists.scsys.co.uk Hi Moritz, I was also on the go since thursday, so not much time yet. Am Mittwoch 01 April 2009 07:43:08 schrieb Moritz Onken: Am 01.04.2009 um 00:50 schrieb Mario Minati: Hi Moritz, I like your Controller very much. Just

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 on...@houseofdesign.de: 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

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

2009-03-31 Thread Moritz Onken
put it into the model and let the update die on problems or do you overwrite the PUT/PUSH methods? Do you plan to put that module into the formfu repository? Greets, Mario Minati Am Dienstag 31 März 2009 13:13:09 schrieb Moritz Onken: Hi Mario, I wrote a Catalyst controller which might

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

2009-03-30 Thread 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 strings in the database,

Re: [html-formfu] create panels for ExtJS

2009-03-25 Thread Moritz Onken
(). It would be great if this would still work, even if we add a Panel object. Thanks for yur efforts anyway! Moritz Am 24.03.2009 um 13:28 schrieb Moritz Onken: I think we should make Fieldset a subclass of your Panel class. Just copy the code from Fieldset and put in your code and name

Re: [html-formfu] Client side validation in ExtJS

2009-03-25 Thread Moritz Onken
I thought about client side validation, too. I think this is an absolute must for FormFu::ExtJS. There are a few build-in validation constraints which can be accessed pretty easily via ExtJS iteself. Like: - Required becomes { allowBlank: false} - Length becomes { maxLength: xx, minLength:

Re: [html-formfu] How to override standard message, 'This field is required'?

2009-03-25 Thread Moritz Onken
Hi, you can set message on every constraint which will overwrite the error message. Example: - type: Text name: foo constraints: - type: Required message: Dieses Feld wird benötigt See http://search.cpan.org/~cfranks/HTML-FormFu-0.03007/lib/HTML/FormFu/Constraint.pm for

Re: [html-formfu] create panels for ExtJS

2009-03-24 Thread Moritz Onken
Sounds good to me. Please make sure that tests are present. Finally TabPanels come to FormFu::ExtJS :-) Moritz Am 24.03.2009 um 03:34 schrieb Mario Minati: Currently I don't see any element which renders as a ExtJS panel. So I'm creating one, which can have a given xtype and has children

Re: [html-formfu] create panels for ExtJS

2009-03-24 Thread Moritz Onken
border: false frame: true elements: But that would also be possible with the current fieldset class if we make xtype configurable. What do you think? Greets, Mario Minati Am Dienstag 24 März 2009 10:53:41 schrieb Moritz Onken: Sounds good to me. Please make sure

Re: [html-formfu] Include Catalyst::Controller::RequestToken in C::C::HTML::FormFu

2009-03-17 Thread Moritz Onken
Hi Moritz, I'm really busy at the moment - but if you could email me a Cat app already set up using this, and demonstrating the problem, that would really help me start on figuring out what's going wrong. Carl I understand! I'll do that, thanks for looking into that!

Re: [html-formfu] Include Catalyst::Controller::RequestToken in C::C::HTML::FormFu

2009-03-17 Thread Moritz Onken
Am 17.03.2009 um 10:39 schrieb Carl Franks: 2009/3/13 Moritz Onken on...@houseofdesign.de: Am 10.02.2009 um 23:01 schrieb Carl Franks: Hi Moritz, Could you attach your RequestToken.pm, and I'll take a look? Cheers, Carl Hi Carl, do you have time so we can go through this together? I'm

Re: [html-formfu] Include Catalyst::Controller::RequestToken in C::C::HTML::FormFu

2009-03-17 Thread Moritz Onken
Am 17.03.2009 um 10:39 schrieb Carl Franks: 2009/3/13 Moritz Onken on...@houseofdesign.de: Am 10.02.2009 um 23:01 schrieb Carl Franks: Hi Moritz, Could you attach your RequestToken.pm, and I'll take a look? Cheers, Carl Hi Carl, do you have time so we can go through this together? I'm

Re: [html-formfu] Re: constraints_from_dbic

2009-03-13 Thread Moritz Onken
Am 13.03.2009 um 11:09 schrieb Carl Franks: 2009/3/13 Ian Wells i...@cack.org.uk: 2009/3/10 Ian Wells i...@cack.org.uk: I thought the HTML::FormFu::ObjectUtil::constraints_from_dbic method might be a good idea to reduce the number of times I have to state the length of character fields

Re: [html-formfu] Include Catalyst::Controller::RequestToken in C::C::HTML::FormFu

2009-03-13 Thread Moritz Onken
Am 10.02.2009 um 23:01 schrieb Carl Franks: Hi Moritz, Could you attach your RequestToken.pm, and I'll take a look? Cheers, Carl Hi Carl, do you have time so we can go through this together? I'm avaiable on IRC, nickname mo, and will be the next days. cheers, moritz

Re: [html-formfu] Populate form using a complex hashref?

2009-03-11 Thread Moritz Onken
Am 11.03.2009 um 16:35 schrieb Carl Franks: 2009/3/9 Moritz Onken on...@houseofdesign.de: Right, I probably mixed things up. Nevertheless here is a patch for Date.pm and a test which fails without that patch. That looks fine, can you commit it? Cheers, Carl done

Re: [html-formfu] Populate form using a complex hashref?

2009-03-09 Thread Moritz Onken
Am 09.03.2009 um 10:39 schrieb Carl Franks: 2009/3/8 Moritz Onken on...@houseofdesign.de: For HashRef to work properly I need a method to unset the values of each field. I tried that with: map { eval { $_-default(undef) } } (grep { $_-is_field } @{$form-get_all_elements}); which works

Re: [html-formfu] Populate form using a complex hashref?

2009-03-08 Thread Moritz Onken
Am 03.03.2009 um 17:04 schrieb Moritz Onken: Am 03.03.2009 um 12:48 schrieb Carl Franks: 2009/3/3 Moritz Onken on...@houseofdesign.de: I think this can be part of FormFu itself and should not be an extra module on CPAN. There is one additional requirement: Hash::Flatten. But from what

Re: [html-formfu] Having issues with nested repeatable loading from db.

2009-03-06 Thread Moritz Onken
Am 06.03.2009 um 13:14 schrieb Carl Franks: 2009/3/5 Moritz Onken on...@houseofdesign.de: I really really wish that the ID should not be a Hidden field. I ran into this problem several times. Maybe it's time to patch that :) Other than debugging, would there be a legitimate reason

Re: [html-formfu] Having issues with nested repeatable loading from db.

2009-03-05 Thread Moritz Onken
Am 05.03.2009 um 15:40 schrieb Leanan Sidhe the.leanan.si...@gmail.com: On Thu, Mar 5, 2009 at 8:46 AM, Ascii King t...@swattermatter.com wrote: For starters, I don't think it is supposed to be schema = DB, just schema DB Controller::HTML::FormFu model_stash schema DB

Re: [html-formfu] Having issues with nested repeatable loading from db.

2009-03-05 Thread Moritz Onken
Am 05.03.2009 um 20:42 schrieb Leanan Sidhe: Figured out my problem. I didn't have the hidden fields count and id. For me id actually had to be debits_item_id, instead of just id, since that was the primary key for my debititems table. Hi, I really really wish that the ID should not be

Re: [html-formfu] Populate form using a complex hashref?

2009-03-03 Thread Moritz Onken
::FormFu, LHash::Flatten =head1 AUTHOR Moritz Onken, C on...@houseofdesign.de ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: [html-formfu] Include Catalyst::Controller::RequestToken in C::C::HTML::FormFu

2009-03-03 Thread Moritz Onken
Am 21.02.2009 um 14:06 schrieb Moritz Onken: Am 11.02.2009 um 17:25 schrieb on...@houseofdesign.de on...@houseofdesign.de : Hi Carl, I svn commited Plugin/Constraint/Element::RequestToken. Plugin::RT adds the Element::RT which adds Constraint::RT to it. cheers, moritz Hi Carl

Re: [html-formfu] Constraint for salted hash password

2009-02-27 Thread Moritz Onken
Am 27.02.2009 um 11:05 schrieb Christian Lackas: Hi Everybody, just working on a user detail form, where the user has to type in his password to be able to store the data. The passwords are stored as a salted hash (using Crypt::SaltedHash and Digest::SHA1) in the database. My idea was to

[html-formfu] Populate form using a complex hashref?

2009-02-27 Thread Moritz Onken
Hi, is it possible to populate a form with data using a complex hashref in -process()? I'd like to fill a form with data like this: {user = test, addresses = [{address = somwhere},{address = somewhere else}]} where addresses is a repeatable block. Thanks, moritz

Re: [html-formfu] Populate form using a complex hashref?

2009-02-27 Thread Moritz Onken
Am 27.02.2009 um 12:10 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Hi, is it possible to populate a form with data using a complex hashref in -process()? I'd like to fill a form with data like this: {user = test, addresses = [{address = somwhere},{address

Re: [html-formfu] Populate form using a complex hashref?

2009-02-27 Thread Moritz Onken
Am 27.02.2009 um 12:28 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Am 27.02.2009 um 12:10 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Hi, is it possible to populate a form with data using a complex hashref in -process()? I'd like

Re: [html-formfu] Populate form using a complex hashref?

2009-02-27 Thread Moritz Onken
Am 27.02.2009 um 15:08 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Am 27.02.2009 um 12:28 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Am 27.02.2009 um 12:10 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Hi

Re: [html-formfu] Populate form using a complex hashref?

2009-02-27 Thread Moritz Onken
Am 27.02.2009 um 15:38 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Yes it's ExtJS stuff. I need hashrefs to feed a JSON encoder. I'm not sure yet how it should be implemented. But I think this is a good start. I attached a patch which adds the functionality

Re: [html-formfu] Populate form using a complex hashref?

2009-02-27 Thread Moritz Onken
Am 27.02.2009 um 15:41 schrieb Moritz Onken: Am 27.02.2009 um 15:38 schrieb Carl Franks: 2009/2/27 Moritz Onken on...@houseofdesign.de: Yes it's ExtJS stuff. I need hashrefs to feed a JSON encoder. I'm not sure yet how it should be implemented. But I think this is a good start. I

Re: [html-formfu] Include Catalyst::Controller::RequestToken in C::C::HTML::FormFu

2009-02-21 Thread Moritz Onken
Am 11.02.2009 um 17:25 schrieb on...@houseofdesign.de on...@houseofdesign.de : Hi Carl, I svn commited Plugin/Constraint/Element::RequestToken. Plugin::RT adds the Element::RT which adds Constraint::RT to it. cheers, moritz Hi Carl, did you have time to look into this? Moritz

Re: [html-formfu] Model::DBIC: label-style text field

2009-01-11 Thread Moritz Onken
Am 09.01.2009 um 16:11 schrieb Carl Franks: I don't think non_param() can help. Model-DBIC iterates over form fields, not input parameters, so it shouldn't make any difference. I still think the best idea is adding support to Model-DBIC for a 'readonly' attribute. It'll take a while to do

Re: [html-formfu] Repeatable block will not save records

2008-12-31 Thread Moritz Onken
sub formfu_edit :Local :FormConfig('prior/formfu_create.yml') { my ($self, $c, $id) = @_; # Get the specified book my $book = $c-model('DB::Prior')-find($id); # Make sure we were able to get a book unless ($book) { $c-flash-{error_msg} = Invalid prior

Re: [html-formfu] Repeatable block will not save records

2008-12-30 Thread Moritz Onken
Am 30.12.2008 um 20:41 schrieb Ascii King: I have investigated and found that I can only save the first record in any has_many relationship. This is the same problem listed in this post http://lists.scsys.co.uk/pipermail/html-formfu/2008-February/000972.html The answer there was to add

  1   2   >