This is a visual reference to the google group discussion: https://groups.google.com/group/play-framework/browse_thread/thread/14660fd7056d577e/a3afb4ca06d25ce5#a3afb4ca06d25ce5
So, I'm simply trying to add some verbosity to views:
When I reference either of the files, or try to, in the Scala controller, based on the example provided in the Google Group, I get an error:
What gives?
Disclaimer: I'm not a Eclipse user, just created and imported blank Play's project to check this issue! I had no time to test Eclipse configs, just imported as descriped at Play's docs. Maybe it is some way to better configuration, but you need search for it yourself :)
I wouldn't blame Play, it does its job properly, otherwise it wouldn't compile at all. As I wrote in Google Group's topic you need to place your view in package:
/views/nested/index.scala.html
(of coursenested
is just a some name it can be whatever else), then you can catch it with:Ok(views.html.
nested.index()
)
In Eclipse:
Package Explorer
clickviews
package with:right mouse button
>New
>Package
and write package's nameviews.nested
orviews.one
or something else, even it could be:views.nested.one.two.three
myNewView.scala.html
play ~run
so it will compile your new or changed views right after saving in IDE.Project
>Clean...
. De facto, that's the clue, I'm not quite sure why this cleaning is required as Play compiles everything properly, read the disclaimer at the beginning.Screenshot