@@ doesn't work in mail template

Bug #527565 reported by aleung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Status tracked in 1.0
1.0
Fix Released
Undecided
Nicolas Leroux
1.1
Fix Committed
Undecided
Nicolas Leroux

Bug Description

In mail template, #{a @Application.index()}Home#{/a} works, but #{a @@Application.index()}Home#{/a} get error:

play.exceptions.TemplateExecutionException: No such field: Application for class: play.templates.Template$ExecutableTemplate$ActionBridge
        at play.templates.Template.throwException(Template.java:266)
        at play.templates.Template.render(Template.java:231)
        at play.mvc.Mailer.send(Mailer.java:189)
        at notifiers.Mails.commentReplied(Mails.java:12)
        at controllers.Blog.replyToComment(Blog.java:287)
        at play.utils.Java.invokeStatic(Java.java:129)
        at play.mvc.ActionInvoker.invoke(ActionInvoker.java:138)
        at Invocation.HTTP Request(Play!)
Caused by: groovy.lang.MissingFieldException: No such field: Application for class: play.templates.Template$ExecutableTemplate$ActionBridge
        at /app/views/Mails/commentReplied.html.(line:3)
        at play.templates.Template.render(Template.java:208)
        ... 6 more

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.