Possible duplicate:
How to make Eclipse see changes in Play! compiled templates?
I'm taking my first steps with Play! Framework and I am facing some problems. I can create and eclipse a project without problems.
Now, if I add a new view, for example, "sometest.scala.html", and I try to use it in the "application", Eclipse marks this file as an error.
package controllers; import play.*; import play.mvc.*; import views.html.*;; public class Application extends Controller { public static Result index() { return ok(sometest.render("test"));
Eclipse notes sometest red even if it works. If I go to localhost: 9000, I can see my changes.
My browse folder is as follows:
app --views ----index.scala.html ----main.scala.html ----sometest.scala.html
I created sometest as an html file and set the name of the .scala.html file
A simple solution:
launch the application using
$ cd myapp $ play $ run
go to your webrwoser and type: localhost: 9000
create a new .scala.html file in your views folder.
Update your site on localhost: 9000
Done.
Maik klein
source share