Commenting on:
> person, telephone_number and email_address have multiple columns. person
> has_many telephone_numbers, person has_many email_addresses. I want a form
> to manage information about a particular person, including the ability to
> update existing telephone numbers and email addresses, and with buttons to
> delete any particular number and to add new ones.
This is what I am trying to do in Catalyst::Example::Controller::InstantCRUD - the form is generated from the database schema and then when you do update the respective tables are updated. It works - but I am not happy with the overall architecture and as I've wrote in my previous email I am now rethinking the whole concept. In the new version the form is generated from an intermediate config not directly from the db schema.
The whole thing is a app generator (scaffolding) - but my goal is to Catalyst::Example::Controller::InstantCRUD usable also without the generator.
--
Zbyszek
On 9/21/06, Jon Warbrick <[EMAIL PROTECTED]> wrote:
On Wed, 20 Sep 2006, Ash Berlin wrote:
> Maybe look at FormBuilder. (?)
Definitely a possibility, but I haven't got my head around it yet...
> Also suggest a situation that is "complex then solutions like HTMLWidget
> can conveniently cope with" and I'll tell you if it is (or will be -
> refactor is coming)
person, telephone_number and email_address have multiple columns. person
has_many telephone_numbers, person has_many email_addresses. I want a form
to manage information about a particular person, including the ability to
update existing telephone numbers and email addresses, and with buttons to
delete any particular number and to add new ones. I don't think HTMLWidget
can do that (though I'd be happy to be proved wrong).
There is also the issue that a complex form it may need careful manual
layout of the various controls to make it usable. As I see it this is
something for the designer to do, working in the relevant templates,
whereas with HTMLWidget at least the ordering and grouping, and to some
extent the layout, is defined in the model class. I accept there is much
that can be done about this with CSS, but I also suspect that there are
some things that can't.
Jon.
--
Jon Warbrick
Web/News Development, Computing Service, University of Cambridge
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
