Bootstrap

A simple CRUD application in Play! Framework using Kundera and Cassandra as a Database.

Reading Time: < 1 minute playing-kundera-cassandra: This is a classic CRUD application, backed by Play 2.3.0, Kundera & Cassandra. It demonstrates: Accessing a Cassandra database, using Kundera. Achieving, Futures to use more idiomatic error handling. Accessing JS & CSS libraries by WebJars. Bootswatch-United with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Instructions :- The Github code for the project is at : playing-kundera-cassandra Clone the project Continue Reading

Classic CRUD application in Play Framework 2.3.0 with ReactiveMongo, WebJars and Bootswatch-United

Reading Time: < 1 minute Play 2.3.0 application with ReactiveMongo – reactive, asynchronous and non-blocking Scala driver for MongoDB. This is a classic CRUD application, backed by a MongoDB database. It demonstrates: Achieving, Futures to use more idiomatic error handling. Accessing a MongoDB database, using ReactiveMongo. Achieving, table pagination and sorting functionality. Replaced the embedded JS & CSS libraries with WebJars. Play and Scala-based template engine implementation Bootswatch-United with Twitter Continue Reading

Play Framework 2.2 with WebJars client-side web libraries

Reading Time: < 1 minute WebJars are client-side web libraries (e.g. jQuery & Bootstrap) packaged into JAR (Java Archive) files. WebJars can be added as dependencies to an app by simply adding them to the build.sbt file. There is also a helper library named webjars-play that makes it easy to reference WebJar assets. Here is an example build.sbt file with webjars-play and the bootstrap WebJar as dependencies. Do the following Continue Reading

Employee-Self-Service: Reactive and Non-Blocking Database Access using Play Framework and Anorm – (Part-4)

Reading Time: 2 minutes Last week, We have added Database Access as Reactive and Non-Blocking behaviour in Employee-Self-Service  application. Now we have added some more features. These are following: Achieving, Futures to use more idiomatic error handling. Replaced the embedded JS & CSS libraries with WebJars. Achieving, table pagination and sorting functionality. Before: def list() = Action.async { implicit request => val futureEmpList = scala.concurrent.Future { Employee.list } val timeoutFuture = Promise.timeout("Oops", Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-2)

Reading Time: 2 minutes Last week, We have created a simple Employee-Self-Service  application using Play Framework and Anorm SQL data access , which has CRUD facility. Now we have added more features, i.e. Handling asynchronous results with time-outs facility thus application is now reactive (Async + Non-Blocking) Play and Scala-based template engine implementation. Bootswatch-Yeti with Twitter Bootstrap 3.1.1 to improve the look and feel of the application Application screens: 1. Continue Reading

Employee-Self-Service – Building Reactive Play application with Anorm SQL data access – (Part-1)

Reading Time: < 1 minute This is a classic CRUD application, backed by a JDBC database. It demonstrates: Accessing a JDBC database, using Anorm. Integrating with a CSS framework (Twitter Bootstrap 3.1.1). Twitter Bootstrap requires a different form layout to the default one that the Play form helper generates, so this application also provides an example of integrating a custom form input constructor. Check the application and the code base Continue Reading

Validate Within a group of fields, ensure at least one is complete.

Reading Time: < 1 minute Within a group of two names, ensure at least one is complete. Validate at least one field must be filled or both using jQuery Validation Plugin and Bootstrap. Required pulgins 1. jQuery Validation Plugin jquery.validate.min.js additional-methods.js 2. Bootstrap bootstrap.min.css bootstrap.min.js For Code and live example click : here