[html-formfu] H:F:C:Element::Label

2013-07-14 Thread Gabor HALASZ
=> 1, parent => 'fix', stash=> {}, tag => "span", type => "Label", value=> "foobar", }, "HTML::FormFu::Element::Label"), bl

[html-formfu] DateTime without date

2013-01-08 Thread Gabor HALASZ
| | time_minute | 52 | | time_second | 30 | '--+--' but the vaildation always fails with invalid date. The datetime without time works well. What's wr

Re: [html-formfu] Catalyst: FormFu localisation doesn't work, templates & controllers localisation do

2012-07-17 Thread Gabor HALASZ
On 7/17/2012 4:07 PM, Jan Grmela wrote: Hi there, I'm just in process of implementation translations to our new app. We're using Catalyst with Catalyst::Controller::HTML::FromFu and Template Toolkit as a templating engine along with Catalyst::Plugin::I18N to localize our app. The base translatio

Re: [html-formfu] FormFu many_to_many YAML declaration

2012-04-12 Thread Gabor HALASZ
On 4/12/2012 5:04 PM, Robyn Jonahs wrote: Hrm, so go into the test directory for the various modules? I will look into those on my local install. It depends on your environment, the binary packages not contains the unit tests, but most of the perl modules sources are available and browseable

Re: [html-formfu] FormFu many_to_many YAML declaration

2012-04-12 Thread Gabor HALASZ
On 4/12/2012 12:59 AM, Robyn Jonahs wrote: The section just above the link you sent was what I was trying to use as a guide. I do see that they use a Textarea not a Text field. I tried that and it also failed. With all my trial and error I have yet to figure out where I am going wrong. In my o

Re: [html-formfu] FormFu many_to_many YAML declaration

2012-04-11 Thread Gabor HALASZ
On 4/11/2012 7:29 PM, Robyn Jonahs wrote: | What if I don't want the authors in a select field but a text field? Can I do that? I have been trying to use something like in http://search.cpan.org/~pshangov/HTML-FormFu-Model-DBIC-0.09002/lib/HTML/FormFu/Model/DBIC.pm#has_many_and_many_to_many_re

Re: [html-formfu] position element not found

2012-01-17 Thread Gabor HALASZ
On 1/10/2012 7:48 PM, Gabor HALASZ wrote: $position = $c->stash->{form}->get_all_element({ type => 'File', }); $position->parent->insert_after( $c->stash->{form}->element( { name => $productId, src => $c->uri_for( '/api/getproducticon/'

Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 10:56 AM, Carl Franks wrote: Ah, it's the old FAQ :) - you need to call insert_after() on the parent of $position, not the $form object. So, do this: $position->parent->insert_after( \%new_spec, $position ); Hi! I tried this, but not works perfectly, the new element render

Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 12:15 PM, Carl Franks wrote: On 10 January 2012 10:22, Gabor HALASZ wrote: Thanks :) My last question today: I created a simple element/constraint pair for my app to protect form's hidden fields (with sha1 checksum) from malicious users. What do you think, its maybe interesti

Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 10:56 AM, Carl Franks wrote: On 10 January 2012 09:16, Gabor HALASZ wrote: On 1/10/2012 9:38 AM, Carl Franks wrote: Hi, Can you provide the config / code which sets-up the form, and the rest of your code which looks like it's cut off mid-line? Hi! My configs: pi

Re: [html-formfu] position element not found

2012-01-10 Thread Gabor HALASZ
On 1/10/2012 9:38 AM, Carl Franks wrote: Hi, Can you provide the config / code which sets-up the form, and the rest of your code which looks like it's cut off mid-line? Hi! My configs: picture/manage.conf: <> typeBlock id fieldb

[html-formfu] position element not found

2012-01-09 Thread Gabor HALASZ
form.tt" [error] Caught exception in PAGL::Controller::Picture->manage "position element not found at /usr/home/HalaszGabor/Pagl/script/../lib/PAGL/Controller/Picture.pm line 53" If I tried get_all_elements without %options, and the insert_a

Re: [html-formfu] Multiple submit button failure

2012-01-09 Thread Gabor HALASZ
On 1/9/2012 12:07 PM, Carl Franks wrote: On 8 January 2012 21:23, Gabor HALASZ wrote: Hi! I created a form with a select field and two submit button with different values. When I sent the form, the Catalyst reports the correct parameters, but formfu not: When using multiple submit buttons

[html-formfu] Multiple submit button failure

2012-01-08 Thread Gabor HALASZ
m2x2o98crjfyr', 'data' => 'Data', 'image' => 'Image' }; ($c->log->debug('HIER: ' . Dumper $c->stash->{form}->params);) What about this? Thanks -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

[html-formfu] Confusing error with File element

2011-10-16 Thread Gabor HALASZ
... Of course, this exception caused by a wrong placed filters, but why lost all methods from H:F:Q:C? I spent 2 hours to solve this situation, the exception directed me to a wrong way, and I tried to figure out a problem in H:F code instead in my form config :( My versions: p5-HTML-FormFu-0.09005 p5-H

Re: [html-formfu] project status

2011-07-08 Thread Gabor HALASZ
essages :) Thanks -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

[html-formfu] Element::Number locale bug or missing feature

2011-04-13 Thread Gabor HALASZ
ecause I have 'localize_from_context => 1,' in my appconfig? And why call the Number::Format on an empty form without default values? -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

[html-formfu] Element::Password, Model::DBIC and DBIC::EncodedColumn

2011-04-12 Thread Gabor HALASZ
d field will not be deletable, but I think, this is a smaller problem). What about this? -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

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

2011-02-08 Thread Gabor HALASZ
rsion of MooseX-ChainedAccessors from Github. -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: [html-formfu] More complex DBIC/FormFu interaction

2011-01-18 Thread Gabor HALASZ
magic of DBIC accessible to create forms, and placed every component to a right place (model in database model, form prefill logic in application/controller, and form description in config files). And finally, I think, this not require an intensive extension of Mode

Re: [html-formfu] More complex DBIC/FormFu interaction

2011-01-13 Thread Gabor HALASZ
quot;me.id" or "map_actions.id", as appropriate. Yes, I think about this solution (me.id works), but I wasn't sure about the correct formfu's way. Thanks -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.

Re: [html-formfu] More complex DBIC/FormFu interaction

2011-01-13 Thread Gabor HALASZ
out the condition, the create/update works well. The resultset relationship is many_to_many and my Model::DBIC newer than the linked revision (0.08002). What about this? Thanks -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Re: [html-formfu] H:F:M:DBIC condition_from_stash

2011-01-11 Thread Gabor HALASZ
2011.01.11. 16:39 keltezéssel, Ronald J Kimball írta: On Tue, Jan 11, 2011 at 8:21 AM, Gabor HALASZ mailto:halas...@freemail.hu>> wrote: I think, simply on wrong place and checks wrong variable, the correct is: for my $name ( keys %$from_stash ) { croak "config

Re: [html-formfu] H:F:M:DBIC condition_from_stash

2011-01-11 Thread Gabor HALASZ
On 2011.01.11. 13:27, Carl Franks wrote: On 11 January 2011 11:47, Gabor HALASZ wrote: Hi Carl! Why not accepts hashes from stash in condition_from_stash? I read the DBIC.pm: if ( defined( my $from_stash = $attrs->{condition_from_stash} ) ) { $condition = $condit

[html-formfu] H:F:M:DBIC condition_from_stash

2011-01-11 Thread Gabor HALASZ
gt;stash->{userRS}->name }; commented out the croak line above, and I got the correct query: WHERE ( ( id > ? AND name != ? ) ): '1', 'Administrator' What's your opinion? Thanks -- Gabor HALASZ ___ HTML-FormFu

Re: [html-formfu] lost equal sign

2010-10-29 Thread Gabor HALASZ
2010.10.29. 14:32 keltezéssel, Octavian Rasnita írta: In order to make it work, the following Config::General configuration should be added: -SplitPolicy => 'whitespace', ...in the myapp.conf somewhere under: Hi! Thanks. I read the man pages, added next lines to my Catalyst app's __PACK

[html-formfu] lost equal sign

2010-10-29 Thread Gabor HALASZ
Hi! I created the next config: ... model System::User id_column id label_columnlogin > 1 = 0 ... but I got an sql error: WHERE ( ( dead ? AND id > ? ) )" with ParamValues: 0="0", 1="1" Tried

Re: [html-formfu] error in select_tag tt template

2010-02-23 Thread Gabor HALASZ
On 2010.02.23. 16:41, Carl Franks wrote: > > Hi, > > I think there must be something wrong with your installed files - this > error isn't in the file in the 0.06001 distribution, and the file > hasn't changed in source-control in over 2 years. Hi! Sure, I tried reproduce on a (two) clean instal

Re: [html-formfu] error in select_tag tt template

2010-02-23 Thread Gabor HALASZ
Carl Franks wrote: 2010/2/23 Gabor HALASZ : [snip] and rendered as an empty select (tested with ie and firefox). This caused by a typo in the select_tag template: [% ELSE %] < option value="[% option.value %]"[% process_attrs(opti

[html-formfu] error in select_tag tt template

2010-02-23 Thread Gabor HALASZ
[% END %] I simply changed to the next version: [% ELSE %] [% option.label %] [% END %] and the selectable list works. I'm using HTML-FormFu-0.06001. -- Gabor HALASZ ___ HTML-F

Re: [html-formfu] Localization with catalyst

2010-02-01 Thread Gabor HALASZ
Hi! One more question...How can I localize the title attribute? I changed from title Enter your password here to title_loc, but it not works. thanks -- Gabor HALASZ ___ HTML-FormFu mailing list HTML-FormFu

Re: [html-formfu] errors behind the corresponding input

2010-01-29 Thread Gabor HALASZ
On 2010.01.29. 15:49, Sven Eppler wrote: > Hi Wolfang, > > this basicly solves my problem. But it moves the message to the complete > right and let it grow from there towards my input elements. > > Which works on bigger error messages. But smaller ones look "lost" at > the right side of the scree

Re: [html-formfu] Localization with catalyst

2010-01-29 Thread Gabor HALASZ
Brian Cassidy wrote: On Fri, Jan 29, 2010 at 8:31 AM, Gabor HALASZ wrote: I got an exception Caught exception in MyApp::Controller::Auth->login "Can't locate object method "get_handle" via package "Catalyst::Plugin::I18N" at /usr/local/lib/perl5/site_perl/5

Re: [html-formfu] Localization with catalyst

2010-01-29 Thread Gabor HALASZ
Brian Cassidy wrote: 2010/1/29 Gabor HALASZ : I tried localize formfu with catalyst::plugin::I18N, but I have no luck. Can you paste your form config? Thanks for a quick answer. I used label instead of label_loc, of course :) I rewroted my config: constraints Required

[html-formfu] Localization with catalyst

2010-01-29 Thread Gabor HALASZ
ction::FormConfig loading config file 'auth/login' [debug] Form->languages: hu en ru en-us i-default [debug] Form->localize_class: Catalyst::Plugin::I18N [debug] Rendering template "auth/login.tt" My packages' versions: HTML-FormFu-0.06001_1 Catalyst-Plugin-I1