Saturday, August 9, 2014

Play framework 2.3.x scala template

http://www.playframework.com/documentation/2.1.0/ScalaTemplateUseCases

Ways of defining scala templating syntax
http://stackoverflow.com/questions/10624983/include-scala-html-files-in-play-2-0-scala

Error : Compilation error
Unclosed character literal link to css
<link rel="stylesheet" href="@routes.Assets.at('stylesheets/main.css')">

It was because I used single quote at'stylesheets/main.css' because java expects a character within single quote so solution is

<link rel="stylesheet" href="@routes.Assets.at("stylesheets/main.css")">

About Form sumbmission
http://www.playframework.com/documentation/2.1.1/JavaForms

Routes syntax
https://www.playframework.com/documentation/2.2.x/JavaRouting

Using gson
http://www.mkyong.com/java/how-do-convert-java-object-to-from-json-format-gson-api/

No comments:

Post a Comment