score:1
I got the same error and in my case, I forgot to make request implicit. I hope this answer helps if you change the code as Achraf answered but still have the error.
def foo() = Action { implicit request =>
Ok(html.index(form))
}
score:14
The play framework forms handling has changed between version 2.5 and 2.6, in order to make thing works you have to change the declaration of your Application class as follow :
import javax.inject._
import play.api.i18n.I18nSupport
class Application @Inject()(val cc: ControllerComponents) extends AbstractController(cc) with I18nSupport
and in your view add an implicit parametre as follow :
@(customerForm:Form[Customer])(implicit request: RequestHeader, messagesProvider: MessagesProvider)
If you dont need the RequestHeader in your view you may omit its declaration.
Please refer to the link in your error message for more information : https://www.playframework.com/documentation/2.6.x/ScalaForms#Passing-MessagesProvider-to-Form-Helpers
Source: stackoverflow.com
Related Query
- Implicit Messages Provider instance was not found in Play framework with scala
- Class not found in Scala template with Play Framework
- Scala Compiler not found in Intellij IDEA 11 with Play 2.0 project
- Debug not working with play framework activator, scala and eclipse
- Play Framework Scala Environment Variables not found
- How to create an instance of a model with the ebean framework and scala in Play 2.2
- Why can I not mix Scala code with HTML here in Play Framework 2 views?
- Jquery form serialization is not working on facebox with Scala Play Framework 2.2
- Implicit messages Scala Play framework
- Play framework scala Intellij IDE action not found
- Messages not in use with Play Framework
- Play Framework 2.3 Scala - Serialize nested objects to JSon with implicit Writes converters
- Internationalization with Messages not working in Production - Play Framework
- Display Form Validation error messages with twitter bootstrap in scala and Play framework
- could not find implicit value for parameter c: anorm.Column[Float] Play Framework Scala
- It seems that it is not possible to do POST with body >10K with scala play ws framework
- Generated assets not found play / scala framework
- How to use IntelliJ with Play Framework and Scala
- How to access value of map with a key if key was not found in scala?
- "host not allowed" error when deploying a play framework application to Amazon AWS with Boxfuse
- Which is best data access options available for Play framework with Scala and PostgreSQL?
- Dynamic SQL Parameters with Anorm and Scala Play Framework
- Play Scala No Json deserializer found for type (String, String). Try to implement an implicit Reads or Format for this type
- Scala, Play Framework Slick issue - could not find implicit value for parameter rconv
- How do I get Intellij IDEA 12.0 to work with Play Framework 2.1.0 app and Scala 2.10.0?
- OAuth2 provider for Scalatra or Play framework in Scala
- Scala higher kinded types in implicit def fails with "could not find implicit value"
- Composing `Future` result in Play Framework with Scala
- Play 2.5 Migration Error: Custom Action with BodyParser: could not find implicit value for parameter mat: akka.stream.Materializer
- Play Framework 2.4 Scala missing parameter type for implicit request in Action after ActionRefiner
More Query from same tag
- Pattern matching case classes, all cases have same return
- "scala" command terminates batch scripts
- Play framework asynchronous results
- Write function with type parameter
- Scala timestamp/date zero argument constructor?
- Scala - SQL divide by count()
- Spark: How to parse multiple json with List of arrays of Struct?
- Generating json schema from a json with restangular
- Cannot understand routing in Akka HTTP
- SORM: Attempt to refer to an unpersisted entity
- calculate date from String in scala
- AWS EMR dependencies
- How to use Scala Cats' Kleisli with Either
- How to write a limit function in Scala?
- Spark : How to filter columns and perform operations and eventually write all columns to a file?
- Marking an argument implicit inside a method
- Matching tokens carrying values with Scala's parser combinators
- How to print the sign %?
- Runtime error on Scala Spark 2.0 code
- How to programmatically call Route in Akka Http
- Scala convert a string to raw
- Using Nil as Initial Accumulator in Tail Recursive Function
- how to make a dataframe out of an array of case class in scala
- Why does splitting strings give ArrayOutOfBoundsException in Spark 1.1.0 (works fine in 1.4.0)?
- stuck with futures in scala
- Refined and existential types for runtime values
- Scala class with generic types
- Why should you return an Option[Model] when fetching by Id?
- How to check which parameters of case class have default value using scala reflection 2.10
- Make scala map addition generic