It's been suggested that using T5 rendering core as a generic templating
system is bad. Using a different system designed for this was the
suggested solution (something like velocity). My guess is that won't sit
well with you, being that you've progressed as far as you have. At any
rate, good luck and share your experience!
Josh Canfield wrote:
Service interface org.apache.tapestry.services.Environment is matched by 2
services: Environment, MyEnvironment. Automatic dependency resolution
requires that exactly one service implement the interface.
It appears that I can't Alias Environment with my own implementation because
I can't bind MyEnvironment since it implements the Environment interface
(the above error).
I've poked around a lot and I'm not finding a solution.
I'd like to render 2 pages in one request, one for sending an email, and one
to reply to the http request. Environment has a perthread scope, so when my
email page renders it clears the environment and now my form from my html
page tries to use the environment and fails.
Thoughts?
Josh