Advertisement
cc11rocks

Play! 2.0.2 Error

Jul 19th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. I have this in a login.scala.html file :
  2.  
  3. <div id = "id1">
  4. <label for = "storeID-input">Store ID Number</label>
  5.  
  6. <input type = "text" name = "storeID" id = "storeID-input">
  7. </div>
  8. <div id = "id2">
  9. <label for = "employeeID-input">Employee ID Number</label>
  10.  
  11. <input type = "text" name = "employeeID" id = "employeeID-input">
  12. </div>
  13. <div id = "id3">
  14. <label for = "name-input">Name (First and Last)</label>
  15.  
  16. <input type = "text" name = "name" id = "name-input">
  17. </div>
  18. <div id = "id4">
  19. <label for = "password-input">Password</label>
  20.  
  21. <input type = "password" name = "password" id = "password-input">
  22. </div>
  23. @form(routes.Application.checkLogin(loginPrompt.checkLogin(storeID, employeeID, name, password))) {
  24. <input type = "submit" value = "Login" id = "id5">
  25. }
  26.  
  27. I'm receiving this error : "not enough arguments for method checkLogin: (storeID: String, employeeID: String, name: String, password: String)play.api.mvc.Call. Unspecified value parameters employeeID, name, password. "
  28.  
  29. In the Application.java file, the checkLogin method is this :
  30.  
  31. public static Result checkLogin(String storeID, String employeeID, String name, String password) {
  32. return ok(views.html.login.render(LoginPrompt.validate(storeID, employeeID, name, password)), loginPromptForm);
  33. }
  34.  
  35. What is wrong, and how do I get rid of this error?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement