[html-formfu] Problem with HTML-FormFu SVN vs. Module::Install v. 0.73

2008-05-23 Thread Lance A. Brown
I'm working on installing a catalyst app on a new CentOS5 box and have run into this problem: $ perl Makefile.PL include /home/lance/work/HTML-FormFu/inc/Module/Install.pm include inc/Module/Install/Metadata.pm include inc/Module/Install/Base.pm include inc/Module/Install/Makefile.pm include inc/

[html-formfu] Re: Radiogroup problem

2008-06-04 Thread Lance A. Brown
ivorw wrote: - type: Text name: email_address label: Email address constraints: - Email - Required # Added below causes a problem - type Radiogroup name: active options: - [ 0, 'Inactive' ] - [ 1, 'Active' ] - [ 2, 'Sus

[html-formfu] Re: Problem with HTML-FormFu SVN vs. Module::Install v. 0.73

2008-06-05 Thread Lance A. Brown
Carl Franks said the following on 6/5/2008 4:39 AM: I'd just started looking into this, and noticed there's an update to Module::Install (v0.75) available on CPAN which fixes this problem. - Disabled the broken install_share error check (CLACO) I'll update the minimum version required

[html-formfu] Currency constraint

2009-02-05 Thread Lance A. Brown
Greetings, Has anyone written a constraint to ensure the value entered looks like a currency amount, a positive number with no more than 2 decimal places? --[Lance] -- GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9 CACert.org Assurer ___

[html-formfu] Re: Currency constraint

2009-02-05 Thread Lance A. Brown
Lance A. Brown said the following on 2/5/2009 8:36 AM: > Greetings, > > Has anyone written a constraint to ensure the value entered looks like a > currency amount, a positive number with no more than 2 decimal places? > > --[Lance] Heh. Never mind, I figured it out

[html-formfu] H::F::Model::DBIC and adding multiple empty rows

2009-04-17 Thread Lance A. Brown
Greetings, I'm working on a form that describes a paper, with a list of authors. I let the user add additional author entries when creating a new paper or editing an existing one via javascript that insert the appropriate html fragment and increases the hidden counter variable to handle it, but t

[html-formfu] Re: H::F::Model::DBIC and adding multiple empty rows

2009-04-20 Thread Lance A. Brown
Carl Franks said the following on 4/20/2009 5:40 AM: > When you're modifying the client-side form with JavaScript, are you > updating the 'counter' hidden field, so the form builds the correct > number of Repeatable reps during $form->process() ? Yes, but with Model::DBIC involved it looks like th

[html-formfu] Re: H::F::Model::DBIC and adding multiple empty rows

2009-04-20 Thread Lance A. Brown
Carl Franks wrote: > If it doesn't seem to work - dump $form->params(), so you can see > which params are being accepted. $form->params() looks correct at all stages. Here is an example: I have a 'Paper' with two 'Authors': Joe Shmo and John Doe. I edit the paper, the form displays both authors

[html-formfu] Re: H::F::Model::DBIC and adding multiple empty rows

2009-04-20 Thread Lance A. Brown
Carl, Never mind. I found my mistake I was calling $form->model->default_values($paper) too soon. --[Lance] Lance A. Brown wrote: > > sub edit :Path('/edit') :Args(1) :FormConfig('paper.yml') > { > my ($self, $c, $paper_id ) = @_; > >

[html-formfu] Re: Repeatable save problems

2009-04-26 Thread Lance A. Brown
Gerg Coates said the following on 4/26/2009 7:02 PM: > Here's the repeatable block from the form definition: Do you have your counter_name element, 'line_cnt' defined outside the Repeatable block? That's the only obvious problem I can see. --[Lance] -- GPG Fingerprint: 409B A409 A38D 92BF 1

[html-formfu] Re: Repeatable save problems

2009-04-27 Thread Lance A. Brown
Gerg Coates said the following on 4/27/2009 3:38 AM: > Yes, it's defined even though I forgot to include it in the snippet I > posted. I assume all the data shows up properly when you are editting an existing entry? --[Lance] -- GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 0

[html-formfu] Re: Repeatable save problems

2009-04-27 Thread Lance A. Brown
Gerg Coates said the following on 4/26/2009 7:02 PM: > And here's the relevant part of my Catalyst controller: > > sub edit :Local :FormConfig('invoices/edit_invoice.yml') { > my ($self, $c, $ivc_id) = @_; > > if ($c->request->param('cancel')) { > $c->response->redirect($c->uri_for("/invo

[html-formfu] Re: Repeatable save problems

2009-05-01 Thread Lance A. Brown
Greg Coates said the following on 4/30/2009 6:31 PM: > Bumping this. Everything suggested as possible problems ended up being > okay. Does anyone have any ideas? Carl? Did you try taking that call to $form->process() out of the submitted_and_valid section? --[Lance] -- GPG Fingerprint: 40

[html-formfu] Re: setting fieldset title

2009-06-17 Thread Lance A. Brown
Adam Witney wrote: > > Hi, > > Can the Fieldset title be set using FormFu? I have used things like this > > - type: Fieldset > name: Testing1 > attrs: > title: testing2 > > but the output always contains null ... > > {"title":null,"autoHeight":1,"xtype":"fieldset

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

2009-07-16 Thread Lance A. Brown
Are you updating the repeatable count field as needed? I ran into that gotcha. --[Lance] -- GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9 CACert.org Assurer ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://list

[html-formfu] Re: Constraints on repeatable fields

2009-08-05 Thread Lance A. Brown
Yves Räber wrote: > Wow ... that was easy :) > > In my case, 'Catalyst::Controller::HTML::FormFu' take care of running > process, but it seems it's called BEFORE the repeat is executed. > > Adding a $form->process right after my repeat works fine. Correct. If you do anything to the form in a C