Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7675591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:59:51+00:00 2026-05-31T16:59:51+00:00

From the play2’s doc: http://www.playframework.org/documentation/2.0/ScalaForms , there is a sample code: val loginForm =

  • 0

From the play2’s doc: http://www.playframework.org/documentation/2.0/ScalaForms, there is a sample code:

val loginForm = Form(
  tuple(
    "email" -> nonEmptyText,
    "password" -> text
  ) verifying("Invalid user name or password", { 
      case (e, p) => User.authenticate(e,p).isDefined 
  })
)

But it can’t be compiled, the error message is:

Multiple markers at this line
- missing parameter type for expanded function The argument types of an anonymous 
 function must be fully known. (SLS 8.5) Expected type was: ?

It should be wrote as:

verifying("Invalid user name or password", params => params match { 
    case (e, p) => User.authenticate(e,p).isDefined 
}

My play version is latest play2.1-SNAPSHOT(2012-03-18).

Is there something wrong with the doc, or do I miss something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:59:51+00:00Added an answer on May 31, 2026 at 4:59 pm

    The docs are outdated/wrong, your second version is correct. You can fix the docs yourself, it’s a wiki.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wondering is there an equivalent of this feature from play framework http://www.playframework.org/documentation/2.0/JavaAsync Basicly
This is a sample code from play2's built-in's zentasks: object Project { // --
So, I'm trying to get a video to play from an HTTP url. To
I'm using this code from Microsoft to play audio notifications for my application. It's
I'm trying to play a sound file from an iPhone program. Here's the code:
Is there any way to play MP3 directly from a memory stream (without any
I would like to know from some iphone-Audio expert if there is a way
Is there any way to send a song title to the spotify app from
Im new to xCode programming, ive got this code from an ebook tutorial playing
I'm trying to port some code from Play Framework Java to Play Framework Scala

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.