[Catalyst] autocomplete forms?

Peter Karman peter at peknet.com
Wed Dec 31 18:06:26 GMT 2008


Michael Higgins wrote on 12/31/2008 11:45 AM:
> Hey, all --
> 
> Using formbuilder forms with Controller::FormBuilder. But. What I'd
> like (actually, probably need) is to have some of the list select
> boxes asynchronously populated with lists that would autocomplete.
> 
> Am I painted into a corner, or can I shoehorn some AJAX-y goodness
> into Controller::FormBuilder? If so, how?
> 
> If not, what should I use?
> 
> . . .
> 
> Also, the tables are well designed and constrained, so dbix schema
> loader rocks well on it. Is there a catalyst-friendly *form suite*
> that will do the same?

What follows is not about formbuilder, since I do not use it.

CatalystX::CRUD::YUI uses Rose::HTMLx::Form::Related, which in turn uses
Rose::HTMLx::Form::Field::Autocomplete as a special field type. There's
even a feature that detects if the autocomplete feature should be turned
on automatically for form fields that represent foreign keys.

As far as auto-generating your forms from your db schema,
Rose::DBx::Garden does that for RDBO. I have some code lying around that
does it for DBIC too, but I haven't yet CPAN-ified it (likely under
Rose::HTMLx::Form::Generator). If you're interested in that, prod me
offlist and I'll try to get to it.

-- 
Peter Karman  .  peter at peknet.com  .  http://peknet.com/




More information about the Catalyst mailing list