[Nitro] Infinite loop rendering template
James Britt
james_b at neurogami.com
Sat Apr 9 01:52:56 EDT 2005
James Britt wrote:
> I have a form page, generated straight from a template, that has the
> action set to action='/post_entry'
>
> When i submit the form, it hits the post_entry method on the default
> controller class (Blog), and then tries to render the matching template
> file, post_entry.xhtml. So far so goo, no?
>
> But it goes into an infinite loop:
>
>
> DEBUG: Transforming 'public/index.xhtml'
> DEBUG: Compiling action 'public/'
> DEBUG: Transforming 'public/index.xhtml'
> DEBUG: Compiling action 'public/'
> DEBUG: Transforming 'public/index.xhtml'
> DEBUG: Compiling action 'public/'
> DEBUG: Transforming 'public/index.xhtml'
> DEBUG: Compiling action 'public/'
>
I've fixed what was , I think, causing the problem; my template called a
non-existent variable. I changed 'entry' to '@entry' in the post_entry
method, and made sure I used that same var in the template.
But that such an error can result in an infinite loop could be a problem
anyway.
James
More information about the Nitro-general
mailing list