I am not positive, but you might also find navigation templates & classes
helpful.  They are pretty analogous to calling #parse, in that you can call
them dynamically from a screen template.  The advantage over #parse is that
you can create a com.mycompany.modules.navigations package with navigation
classes paired by name that work exactly like screen classes.
$navigation.setTemplate() in your screen template will call navigation class
to fill the context before the template is parsed and the output generated,
whereas the #parse command will do nothing with the screen/navigation
classes.

Additionally, I find it kind of difficult to intelligently handle exceptions
thrown in pull tools, because Turbine is past the action/screen execution
and already into output generation.  This brings the application over to the
push side, which some people consider to be bad, but I find that a push
model is more easily tested with better fault-tolerance.

I should put a disclaimer that I haven't ever used navigation classes, but
just figured this out a few days ago.  I could have removed quite a bit of
logic from my templates in previous projects had I known better.

Good luck,

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to