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 form. I am testing a > repeatable within a repeatable call to the database and it is failing to > display the data from the database. > > Organization -> has_many -> Person -> has_many -> Equipment > > An Organization (table) has many Person (table) records. > A Person (table) has many Equipment (table) records. > > * I can display the Organization record. > * I place the related Person records within a repeatable element and > they display fine. > * I place the related Equipment records within a repeatable element > and they display fine. > * I place the related Equipment records within a repeatable element > inside of the Person repeatable and they will NOT display any data. > > > It does however display the right number of Equipment records, but the > fields are all empty. > > It seems to me that the "sub _fill_nested" routine is the part that won't > populate the fields. HTML-FormFu-Model-DBIC seems to have pulled the data > from the database accurately, but it will not put the data into the fields. > Perhaps it is because it doesn't know how to interpret the new fieldname > with the extra underscore and number? > > example: > <input name="persons.equipments.equipment_id_1_3" type="hidden" > id="persons.equipments.equipment_id_1_3" />
Last time I looked (this was a year ago - so things might have changed) FormFu was not fully recursive - that is it officially only supported one level of nesting. I've managed to make part of the methods to be fully recursive - but not all of them - so now it confussingly sometimes works and sometimes not. -- Zbigniew Lukasiak http://brudnopis.blogspot.com/ http://perlalchemy.blogspot.com/ _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu