Scala LiftWeb Example : A Login Application with Birthday Reminder Functionality and A Nice User Interface

Reading Time: < 1 minute This is LiftWeb Login Template with a nice User Interface. If you want to use Liftweb as framework , Scala as Programming Language and MongoDB as Database then this demo project can be used as a starting point for your application . In this application , you will find lot of functionalities such as : Social Login Service Email SignUP using MongoDB Settings Birthday Reminder Continue Reading

How to use Liftweb’s built-in functionality for Sorting and Pagination using Scala

Reading Time: 2 minutes In this blog , we will have a basic idea that how to use LiftWeb’s built -in functionality for Sorting and Pagination . Lift provides SortedPaginatorSnippet for sorting of results and PaginatorSnippet for paging of results . Suppose you are displaying an item list on web and you want to sort and paginate that list then you have to implement both snippets SortedPaginatorSnippet and PaginatorSnippet Continue Reading

Lift Web : Basics of using snippets for a beginner

Reading Time: 2 minutes If you are a beginner of using Lift web framework, then it will help you a lot for understanding how to play with views and snippets. Here, I am explaining some basic use of snippets. 1. Replace id of a html attribute , if class is given. html : <div class=”demo”> snippet : “.demo [id]” #> (“demo”+_id) 2. Replace id of a html attribute , Continue Reading

Integrate PayPal in LiftWeb application using Scala

Reading Time: 3 minutes If you are developing an E-Business web application , where you have to provide online payment solution to your customer then PayPal is one of the most secure , faster and easier way to make payment online . In this blog, we will have a basic idea that how easily you can integrate PayPal functionality in your Liftweb project using Scala . We are assuming Continue Reading

A Simple Login Application in Liftweb using Scala and MongoDB

Reading Time: < 1 minute Liftweb is an elegant , designer friendly and arguably the most powerful web framework that provides developers ability to create secure , scalable , maintainable , rich and interactive web applications . It is built on the top of Scala and takes View-First approach rather going via the standard Model-View-Controller way. Now , Let’s look at a simple example . This is a simple login Continue Reading

Scala Liftweb : Re render page element without making any request to the server

Reading Time: 2 minutes Lift introduces a powerful feature that enables developer to create rich interactive application using Comet and Ajax support . Using Comet , its easy to push content from server to browser by sending request asynchronously . AJAX works for a single client at a time , while Comet works for multiple users . Comet works like AJAX but in opposite direction . In this blog Continue Reading

Scala LiftWeb: Upload File using AJAX

Reading Time: < 1 minute Liftweb provides AJAX functionality for all html elements except file upload using Scala . But there is a way to upload file using AJAX by binding form as AJAX form . 1) add below lines in your html . <div class="lift:FileSnippet.uploadFile"> Upload File : <input name="upload" type="file"></input> <input type="submit" name="submit" value="Upload"/> </div> 2) class FileSnippet { def uploadFile(form: NodeSeq): NodeSeq = { def handleFile():JsCmd = Continue Reading

Play With Liftweb’s AJAX Generators using Scala

Reading Time: 2 minutes AJAX is an approach for building dynamic web content on the client side . In Liftweb , we can implement this approach either by AJAX or by Comet . Comet is like AJAX , except in opposite direction . AJAX model increases the richness of the User Experience for a single client at a time, Comet can do the same for multiple users. First thing Continue Reading