Salem

Tugaland a.k.a. Portugal

none

Age: 26

17h
answered How to serve reactive ByteChunks in Play Framework (Java) v2.4.x
Apr
22
awarded Announcer
Apr
19
comment Play framework Windows v's Linux file path
@Johntk Are you running both in the same mode (dev/prod)? Make sure that path exists (you can log the value of globalFolderPath in the first code part) and check if that folder can be accessed by the user you run Play with (you can use ls -la /value/of/globalFolderPath)
Apr
18
comment Identify JSON and HTML request with Play Framework
if ( "application/json".equals(request().getHeader("Content-Type")) ){}?
Apr
16
comment Play Framework 2.3 - Can't connect to remote database Linux (Play) -> Win 7 (MySQL)
BTW db_user in db.db_user.user=db_user should be quoted. Try to add logger.com.jolbox=DEBUG to your application.conf to see if you get more information in the console
Apr
16
answered Play Framework 2.3 - Can't connect to remote database Linux (Play) -> Win 7 (MySQL)
Apr
16
comment persisting a list of objects in play framework
If you have a one to many relation between Device and CommentObj, then you should only have a device_id column in your CommentObj table. When you ask for the comments list, basically Ebean will load the rows in CommentObj that match that foreign key...
Apr
15
comment Java Play Framework Json BadRequest
@aleyango I think the only difference between Json and TolerantJson parsers is that TolerantJson does not check for the contentType header. So you probably are not passing that header correctly.
Apr
14
comment Scala play coffee not compile javascript in public/javascript/
That is correct. I think the file is not supposed to go to public folder. If you access /assets/javascripts/main.js (supposing you are using the default asset mapping) in your browser you get a 404?
Apr
14
comment Migration/Conversion from Play Framework to Node.js?
If you want to really get rid of Play, you will have to rewrite everything in NodeJS and find equivalent libraries. Also you can make the two work together (ex: UI in NodeJS using REST api's from Play)
Apr
13
answered Java Play Framework Json BadRequest
Apr
13
comment Play Framework 2.3 - Strange behaviour accessing server externally
That only happens in dev mode?
Apr
10
comment OptimisticLockException While deleting EBeans in Play 2 Framework
See avaje.org/occ.html. Basically if you don't specify a version field, Ebean will use all the fields to check if the row was changed between the select (findUnique) and the delete
Apr
9
comment Play 2.3: "activator install gae" not working
@TimConsolazio I think you are mixing Play1 and Play2. Despite the same name they are different frameworks (they are even coded in different languages...) and you can't expect that what works in one will automatically work in the other. Can you provide the links to play 2.3 documentation that you think are outdated?
Apr
7
comment Is it possible to have the database ids loaded from a fixture start at a certain number?
You only want that behavior in your test db and not in the real db? How are you loading your data in the tests?
Apr
6
answered How to add HTML content in both head and body sections in Play Framework?
Apr
3
comment OptimisticLockException Ebean even with @Version
No. Add a new column named version and you can forget it is there
Apr
2
awarded Guru
Apr
1
comment JSONObject Throwing NULLPOINTEREXCEPTION
org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject check that you are not receiving html/xml instead of json
Apr
1
answered OptimisticLockException Ebean even with @Version
1 2 3 4 5