Issue with bindFromRequest in Play! Framework 2.3

前端 未结 6 1580
夕颜
夕颜 2021-01-12 01:37

I\'m trying to use the automatic binding feature of Play, without success. I\'m developing in Java, on Eclipse 4.4 Luna.

Here is my form :

6条回答
  •  臣服心动
    2021-01-12 02:02

    I have been struggling with exactly the same problem: bindFromRequest returned nulls for "name" field. I did exactly the same what a guy in this Play for Java introduction video did: youtube.com/watch?v=bLrmnjPQsZc . But still no luck. I've been working on Windows 7 with JDK 1.8. IDE: Eclipse 4.4.0. And I run activator through cygwin.

    This is what solved the problem for me:

    1. In Eclipse: Project -> Build Automatically - > turn off
    2. In cygwin: ./activator clean; ./activator compile; ./activator run;

    After this, bindFromRequest binds name correctly and puts it into the database.

提交回复
热议问题