O'Reilly logo

Instant Lift Web Applications How-to by Torsten Uhlmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling forms (Simple)

For each application comes the time where it needs to gather input from its users. There is a conversation going on between your application, or the things your application does, and the people using it.

In this recipe we will explain form support within Lift and how you can take advantage of it.

Getting ready

As always, it's a good idea to follow this text directly in the code and observe the result in the running application. The form examples come with very fancy names, "Form 1" to "Form 3".

To create a Lift form you need the frontend markup on one side and the backend snippet on the other side. The markup is standard HTML with some Lift spice mixed in, and then the magic happens in the snippet.

How to do it...

Let's create ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required