John Siracusa wrote:
On Mon, Jan 26, 2009 at 1:43 PM, Jason Gottshall <[email protected]> wrote:
Caching sounds wise. The only kink I see is that my controller allows for
multiple instances of the same form.
The "same form" meaning what? If you store forms keyed by an
arbitrary name string, you can have as many forms as you want so long
as the names are unique.
My implementation is designed to instantiate subclasses of
Rose::HTML::Form based on the class name, which would likely also be the
cache key, hence the difficulty in having multiple instances of the same
form.
Honestly, the only use case I can actually envision for having the same
form on a page more than once is maybe displaying a simple search form
both above and below a set of results, and even then you wouldn't
actually need two instances of the class, you'd just need to render the
same object twice. Unless anyone can see a use case I'm missing, I think
the point is moot, and I will just remove that whole "same form twice"
concept from the module and be done with it.
--
Jason Gottshall
[email protected]
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/