Hey Minesh,
You aren’t doing anything wrong. Sorry if my last answer made you feel that way; it was not my intention.
Your code looks good. Because I couldn’t reproduce the issue you described with a Scala Play app using Play 2.4-SNAPSHOT,
there must have been a commit fixing this issue between the time of the release you are using (2.2.1, if I’m not mistaken), and
the current Play master.
If you have time, you could try to create a sample Play app that uses the latest stable Play release (2.3.8), and see if you can
reproduce the problem. The rationale being that you could consider upgrading to Play 2.3.8 if things work as expected.
Cheers,
Mirco