Java – play! Frame Create a new view
I created a new project using the playback console
main.scala.html index.scala.html
I want to add a new view file I call it "forums. Scala. HTML". Now, I know that in order to render the view, you need to do this:
views.html.forums.render("Forums");
The problem is that IntelliSense does not recognize "forum", but the index and main it do identify I noticed those documents:
But there is no forum So I suspect this is the problem I tried to set up the project, but it didn't help So what is the solution?
thank you
Solution
If you use play run to start play in development mode, your new view will be compiled as a managed source after the next browser hit
If you will run with play ~, it will compile it as soon as possible because it will recognize the changes in the file
Finally, if you start the application in production mode, that is To start playing, you must stop it with Ctrl C and run it again Anyway, developing applications in production mode is just a bad idea:)
Depending on your IDE, you may need to refresh the file structure to allow it to find the newly created managed source