Tag Archives: web

Deploying PlayFramework Apps in JBoss

After you created your web application you need to create the WAR file that will insert the framework and other dependent libs inside the folder that you specify: play war myapp -o myapp.war Now to deploy on JBoss, you need to do some changes on your WAR file: Create a file called jboss-web.xml in the [...]

Posted in Internet, play, Software Development | Also tagged , , | Leave a comment

Send file to user using views

There are some simple steps to send a file to the user of your web application using the Play Framework: 1. After the controller is created (what I do is to copy the controller  “Application” and do a refactor rename to the name I want). Create a file named MyController (what I do is to [...]

Posted in Internet, play, Software Development | Also tagged , , , | Leave a comment

Play Framework + Oracle = EASY!

To configure your oracle database using the play framework you need to follow the following steps: Choose the JAR with the drivers according to your oracle’s database version and put in the lib/ directory of your web application Configure your application.conf file,  located inside the conf/ directory In the JPA Configuration Section you have to [...]

Posted in Internet, play, Software Development | Also tagged , , , | 9 Comments

[Play] Iterate over objects using jQuery

What if I want to navigate into each checkbox, radio of my html? You can do it pretty easily using jQuery.each function. In every checkbox element I want to send a post message to my Play Framework. jQuery.each($(‘:checkbox’), function() { $.post(‘@{myPlayMethod()}’, { itemValue: $(this).val() }) }); This code sends the html element value property to [...]

Posted in play | Also tagged , , , | Leave a comment