Questions tagged [scala-template]
71 questions
1
vote
1 answer
Working with Scala templating in Play
I have received this error message when I'm passing into a scala written view page:
missing arguments for method apply in object main; follow this method with `_' if you want to treat it as a partially applied function
The error…

windweller
- 2,365
- 5
- 33
- 56
1
vote
2 answers
How to use scala and html code inside single block
why option html element is not binded inside select in case 1?
Case 1: not work
@base{

Markku
- 555
- 1
- 8
- 15
1
vote
2 answers
Java LinkedHashMap not maintaing the order of insert when looped in Play Framework 2.0 template
In play framework's (2.0) application controller I am creating a java
LinkedHashMap) to maintain the order in which I am inserting the string key.
I tried iterating this LinkedHashMap in template like below:-
@for(currentKey…

Kumaran
- 19
- 1
- 3
0
votes
1 answer
Why WebJars are not extracted into a lib folder
According to the documentation,webjars are automatically extracted by Play into a lib folder relative to the our public assets, but after installing bootstrap from webjars, I still have no lib folder. No lib folder under /public, no lib folder under…

acmoune
- 2,981
- 3
- 24
- 41
0
votes
1 answer
Scalate's render tag is not able to resolve the template
Scalate's render tag is not able to resolve the template and throws the following exception:
org.fusesource.scalate.util.ResourceNotFoundException: Could not load resource: [file:/Users/xxxxx/template/abc-conf.ssp]
at…

mangeeteden
- 41
- 3
0
votes
1 answer
Migrate CRUD Plugin from Play 1.2.4 to 2.5.x : views compilation errors
i'm new on Playframework and i need to migrate the CRUD Plugin from Play-1.2.4 to a module on Play-2.5.x. I'm facing some strange problems with the views. For example the form.scala.html component have the following errors…

G.Haithem
- 1
- 1
0
votes
1 answer
How to deal with implict b3 field constructor with the play scala template?
@(loggedUser: Option[User], loginInfo: Option[LoginInfo], cards: Seq[Card], addCardInput: AddCardInput)(implicit request: RequestHeader, messages: Messages)
@category(card: Card) = {
…

fidesachates
- 97
- 1
- 1
- 10
0
votes
1 answer
How to get a value from a HTML text area in the Play Framework?
I am using scala templates within the Play Framework to create my views.
The user is required to enter some text into a text area. I would like to use this text to send into another view within my application.

Perfect_Comment
- 165
- 1
- 2
- 15
0
votes
1 answer
AngularJs in Play Framework 2 project: template rendering
I am in the process of changing an application I wrote in Play Framework 2.5 to a single page application using AngularJs.
Here's an overview of what I was doing:
display a list of posts, using Scala Template's @for
each post was rendered using an…

Khorkhe
- 1,024
- 1
- 11
- 26
0
votes
1 answer
Can't take configuration value in view at 2.5.3 version?
@play.Play.application.configuration.getString("application.host")
how can I take configuration value in view at 2.5.3 version?
Note that the view is used everywere. So I'm searching solution without setting parameters in all controllers.

Kitoj Planetoj
- 3
- 2
0
votes
1 answer
How to set value for field of type list in scala template in play 2.4?
I am passing form variable from controller that contain field of type list. How to set user entered value at particular index of list. Below is my code:
@Data
public class TestForm {
public List testInfo = new ArrayList();
…

visingh
- 233
- 3
- 17
0
votes
1 answer
Problems using Play template in IE 11?
I'm using Play Framework 2.4 (With Java).
I have a scala template file named product.scala.html with a simple checking like this:
@if(services.UserService.isAlreadyLogin()) {
show me
}
The code works perfectly in Chrome…

ipkiss
- 13,311
- 33
- 88
- 123
0
votes
0 answers
Play scala passing List[Int] values from form to controller shows No URL path bind er found for type List[Int] and type mismatch error
In my Play scala project I have multiple selection of drop down items.I have viewed my scala.html file successfully with multiple selection of values in drop down.
What I need
When submitting a form I need to pass multiple selected drop down…

Jamal
- 976
- 2
- 14
- 39
0
votes
1 answer
Play Scala Framework multiple dropdown values selection
In my project I need to show drop down field with multiple items selection(more than one). I have done drop down with single selection by using this below code
userRegisterForm.scala.html
@(userForm: Form[User],languages: Seq[(String, String)])
…

Jamal
- 976
- 2
- 14
- 39
0
votes
2 answers
Why do I get a type mismatch for a map as a routing parameter?
I am using the playframework 2.3.8 and have a view-class. In there a is button:
I want to append a question / answer pair to the…

hamena314
- 2,969
- 5
- 30
- 57