On 13-11-12 4:10 AM, Mck wrote:
Is there a way from within a preparer to get the name of the definition that is
being prepared?
No.
Do you really need the name of the definition?
(it can be a failure to do IoC correctly).
Well, actually, I think I presented the case wrong. I'm looking for the view name that is being matched, not the actual definition name. Considering
that Tiles uses the term "definitionName" in the code, I used that in the post, but it is misleading. I'd like to be able to retrieve the name of the
view that is being prepared.
In the case of wildcard patterns or regex, etc, hard coding something within the template will not work. I figured there would be a mechanism to
retrieve it from the Request, but not entirely sure how.
Thanks,
Eric