[Catalyst] RFC: Catalyst::Controller::RHTMLO

Jason Gottshall jgottshall at capwiz.com
Mon Feb 2 18:59:44 GMT 2009

Zbigniew Lukasiak wrote:
> Maybe I am just being lazy now - but before I start digging too deep -
> did you take into accout that some forms require loading stuff from
> the DB?  It can happen in to cases:
> 1) loading SELECT choices lists - this one is easy - because it can be
> done at initialisation as it does not depend on th request.
> 2) loading related forms for one to many relations - where you don't
> know how many related forms you need until you have the main object -
> i.e. until request time.  See Rose::HTML::Form::Repeatable.

Yes, I'm actually thinking of doing

   my $form = $class->new( app => $c );

so that the form can access model-related stuff as necessary. (This is 
safe because RHTMLO automatically weakens any value passed to ->app). 
Would something like that address your cases?

Jason Gottshall
jgottshall at capwiz.com

More information about the Catalyst mailing list