[html-formfu] new 'force_default' attribute for elements

2007-09-13 Thread Mario Minati
Today I had to implement a disabled form field, which should keep it's value no matter what the user sends in the form data. So I created the 'force_default' attribute which overwrites the value in param with the default value. The changes and documentation is in Elements::_Field. BTW: I chang

[html-formfu] dates

2007-09-13 Thread Jim Spath
I had a couple of questions about dates in HTML::FormFu. Has there been any consideration of a standard Year element? The Date element is extremely handy, and I think a year element would also be a nice addition. Similarly, I was wondering if some standardized date constraints might also be

Re: [html-formfu] HTML::FormFu::Element::DBIC::Select for review

2007-09-13 Thread Zbigniew Lukasiak
When a form was submitted (and has errors) you don't load the values from the DB to it - you load what you have in the CGI parameters - so that the user can correct it. So you cannot just add the creation of options to the DBIx::Class::HTML::FormFu fill_formfu_values method because it would not b

[html-formfu] new 'output processors' provide pretty-printed html

2007-09-13 Thread Carl Franks
I've added a new feature (in svn) - if you want properly indented html, you now only need to add this to your form config: --- output_processors: - Indent I've also created another output processor to strip all unnecessary spaces and linebreaks, to reduce download size - but I need

Re: [html-formfu] HTML::FormFu::Element::DBIC::Select for review

2007-09-13 Thread Zbigniew Lukasiak
Sorry - disregard that email - I've got confused. On 9/13/07, Zbigniew Lukasiak <[EMAIL PROTECTED]> wrote: > How do you make Catalyst::Controller::HTML::FormFu to use > DBIx::Class::HTML::FormFu instead of plain HTML::FormFu? > > -- > Zbigniew Lukasiak > http://brudnopis.blogspot.com/ > -- Zbig

Re: [html-formfu] HTML::FormFu::Element::DBIC::Select for review

2007-09-13 Thread Zbigniew Lukasiak
How do you make Catalyst::Controller::HTML::FormFu to use DBIx::Class::HTML::FormFu instead of plain HTML::FormFu? -- Zbigniew Lukasiak http://brudnopis.blogspot.com/ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cg

Re: [html-formfu] HTML::FormFu::Element::DBIC::Select for review

2007-09-13 Thread Mario Minati
On Wednesday 12 September 2007 15:41:29 Zbigniew Lukasiak wrote: > Hi there, > > Have you had a look at > http://search.cpan.org/~zby/HTML-Widget-DBIC-0.03/lib/HTML/Widget/DBIC.pm > ? It was solving a similar problem for HTML::Widget. Granted it is a > bit experimental. > > I am planning to port

Re: [html-formfu] HTML::FormFu::Element::DBIC::Select for review

2007-09-13 Thread Carl Franks
On 13/09/2007, Zbigniew Lukasiak <[EMAIL PROTECTED]> wrote: > Adding options to a select input and DBIx::Class::HTML::FormFu > > Do I understand right that adding options is done at the create time? > Or can it be done later? > > In HTML::Widget::DBIC I've decided that indeed creating the options >

Re: [html-formfu] HTML::FormFu::Element::DBIC::Select for review

2007-09-13 Thread Zbigniew Lukasiak
Adding options to a select input and DBIx::Class::HTML::FormFu Do I understand right that adding options is done at the create time? Or can it be done later? In HTML::Widget::DBIC I've decided that indeed creating the options should be done at create time - and thats why I pass the DBIC schema to