Using custom tags in template loaded from String via TemplateLoader fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
Confirmed
|
Undecided
|
Nicolas Leroux |
Bug Description
Using custom tags in template loaded from String:
String code = "#{notification/}";
Template templatePlay = TemplateLoader.
generates error:
@6243j13i5
Internal Server Error (500) for request GET /entities
Java exception (In /app/controller
NullPointerExce
play.exceptions
at play.mvc.
at Invocation.HTTP Request(Play!)
Caused by: java.lang.
at play.templates.
at play.templates.
at play.mvc.
at play.mvc.
at controllers.
at play.utils.
at play.mvc.
... 1 more
When i use render() method with the same code placed in HTML file everything works fine.
It could be nice to have good error reporting when working with template from String. By now it's just nullpointer Exception for most problems, without any description.
Changed in play: | |
milestone: | none → 1.1 |
assignee: | nobody → Nicolas Leroux (nicolas-lunatech) |
status: | New → Confirmed |
Changed in play: | |
milestone: | 1.1 → none |