Possible Duplicate:
How to make Eclipse see the changes in Play! compiled templates?
I am doing my first steps with the Play! Framework and I run into some problems. I can create and eclipsify a project without any 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")); // this line is marked red
}
}
Eclipse marks sometest red, even if it works. If I go to localhost:9000, I can see my changes.
My view folder looks like this:
app
--views
----index.scala.html
----main.scala.html
----sometest.scala.html
I created sometest as a html file and set the file name to .scala.html
Simple solution:
run your app with
$ cd myapp
$ play
$ run
go to your webrwoser and type: localhost:9000
create a new .scala.html file in your views folder.
Refresh your website at localhost:9000
Done.