Techminded

Transparent blocks in PlayFramework

Comparing to other comprehensive Web frameworks PlayFramework's tags are not really good to make tranparent site blocks because they force developer to put storage data via renderArgs using controller hook method (annotated with @Before) that is unflexible or include Java code into template that is just worst idea to develop webinterface. Fortunatly framework has a way to implement tags as

Read More »

Ajax File Upload in PlayFramework

Accoring to Google uploading files with Ajax may seems tricky, but it's not. Let's take Valums file upload script that can be downloaded here:

http://valums.com/ajax-upload/

And place it into public/ under the name valums-file-uploader. I'm not spliting files it contains to javascripts, stylesheets etc. to keep distributioin untouched and upgradable. Now we need to chage demo example only a bit:

<div id="file-uploader-demo1">

Read More »

Adding Captcha in PlayFramework2

Built-in captcha has been gone in PlayFramework2. But to plug-in reCaptcha you may find even easier. I will try to keep my examples as simple as possible and without unnessasarry option you may plug later to improve this approcach. First of gain public and private keys from http://recaptcha.net/, choose option to generate global key in case you are going

Read More »

Some notes on modularity in PlayFramework2

PlayFramework2 met lots of disapointments from frist release fans. The Internets is full of questions "How to do that I did it in Play 1". People found groovy templates better than Scalate, Jobs more intuitive than Akka and sbt is quite performance eating and upredictable in comparison to previous play python console. Otherwise second version bring really new level of

Read More »