[2.0] multiple views template directories

60 views
Skip to first unread message

bikez

unread,
Feb 25, 2012, 8:59:22 PM2/25/12
to play-fr...@googlegroups.com
Hi

Is there any way to specify multiple or alternative directories for templates other than application/views?  Or is any feature planned?  Where in the framework source would I need to look to change this?  I found the template compiler but not where it gets invoked.

Thanks!

Guillaume Bort

unread,
Feb 26, 2012, 3:58:07 PM2/26/12
to play-fr...@googlegroups.com
You mean you see errors in eclipse?

> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/RaUfn-t38TgJ.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.

--
Guillaume Bort

Federico Tolomei

unread,
Feb 26, 2012, 4:23:03 PM2/26/12
to play-fr...@googlegroups.com
I see error in eclipse, in browser and console. I confirm that
touching the file and use that view (i.e. inserting a space and saving
it) somethings hide the problem.

The 'box.scala.html' file is in 'views.admin' package.

browser:
[Error: Unresolved compilation problem: box cannot be resolved ]
[...]
return ok(box.render(form(Login.class)));
[...]

Console:
! @69g71c3jc - Internal server error, for request [GET /admin/login] ->

play.core.ActionInvoker$$anonfun$receive$1$$anon$1: Execution
exception [[Error: Unresolved compilation problem:
box cannot be resolved
]]
at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:59)
[play_2.9.1-2.0-RC1-SNAPSHOT.jar:2.0-RC1-SNAPSHOT]
at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:40)
[play_2.9.1-2.0-RC1-SNAPSHOT.jar:2.0-RC1-SNAPSHOT]
at akka.actor.Actor$class.apply(Actor.scala:286) [akka-actor-2.0-M2.jar:2.0-M2]
at play.core.ActionInvoker.apply(Invoker.scala:38)
[play_2.9.1-2.0-RC1-SNAPSHOT.jar:2.0-RC1-SNAPSHOT]
at akka.actor.ActorCell.invoke(ActorCell.scala:478)
[akka-actor-2.0-M2.jar:2.0-M2]
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:187)
[akka-actor-2.0-M2.jar:2.0-M2]
Caused by: java.lang.Error: Unresolved compilation problem:
box cannot be resolved

at controllers.Admin.login(Admin.java:23) ~[classes/:2.0-RC1-SNAPSHOT]
at Routes$$anonfun$routes$1$$anonfun$apply$11$$anonfun$apply$12.apply(routes_routing.scala:104)
~[classes/:na]
at Routes$$anonfun$routes$1$$anonfun$apply$11$$anonfun$apply$12.apply(routes_routing.scala:104)
~[classes/:na]
at play.core.Router$HandlerInvoker$$anon$4$$anon$1.invocation(Router.scala:1069)
~[play_2.9.1-2.0-RC1-SNAPSHOT.jar:2.0-RC1-SNAPSHOT]
at play.core.j.JavaAction$$anon$1.call(JavaAction.scala:33)
~[play_2.9.1-2.0-RC1-SNAPSHOT.jar:2.0-RC1-SNAPSHOT]
at play.GlobalSettings$1.call(GlobalSettings.java:57)
~[play_2.9.1-2.0-RC1-SNAPSHOT.jar:2.0-RC1-SNAPSHOT]

--
skype: effe.to

Reply all
Reply to author
Forward
0 new messages