Re: [html-formfu] Subforms show up as text fields

2009-03-06 Thread Carl Franks
2009/3/5 Ascii King : > I solved it, if anyone needs to know. I checked out the tests and found the > test for the load_config_file.  I needed to add something that accepted an > elements list, like a Block or else it misunderstood whatever config file I > called. > > #main.yml > --- > elements: >

Re: [html-formfu] Subforms show up as text fields

2009-03-05 Thread Ascii King
I solved it, if anyone needs to know. I checked out the tests and found the test for the load_config_file. I needed to add something that accepted an elements list, like a Block or else it misunderstood whatever config file I called. #main.yml --- elements: - type: Block load_config_file

Re: [html-formfu] Subforms show up as text fields

2009-03-05 Thread Leanan Sidhe
That's odd. I changed one of my subconfigs to the following: --- elements: - type: Fieldset legend: Test Fieldset element: - type: Text name: Test1 label: Test1 It displayed just fine. When I removed the elements line it complained that it couldn't

Re: [html-formfu] Subforms show up as text fields

2009-03-05 Thread Ascii King
I have tried it with just the three dashes. It just moves on to the next error. I notice that your sub configs don't have the '---' line... out of curiosity, what happens if you just add that line to the very beginning (leave all else as it is)? It does this. Just finds the next object method

Re: [html-formfu] Subforms show up as text fields

2009-03-05 Thread Leanan Sidhe
Hrm. I'm beginning to wonder if my stuff shouldn't work the way I have it. My problem was that my form is spread across a bunch of tabs. I'm using jquery's tab plugin for a lot of it, and am loading a bunch of TT templates to build it up. My problem was I didn't want to do all the bulding of th

Re: [html-formfu] Subforms show up as text fields

2009-03-05 Thread Ascii King
I tried using Leanan's code almost exactly. The only change I made was to remove the quotes around the filenames. I still get the following error: |"Can't locate object method "elements" via package "HTML::FormFu::Element::Text" I'm sure this is referring to the 'elements:' line in the subconf

Re: [html-formfu] Subforms show up as text fields

2009-03-05 Thread Leanan Sidhe
I use subconfigs, and it works fine. Here is how mine is set up: My base config: --- elements: #stuff like action,indicator, etc load_config_file: - 'MyAction\config_a.yml' - 'MyAction\config_b.yml' # repeat as necessary for all sub configs. A sub config: --- elem