Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Developing Web Applications with Oracle ADF Essentials

You're reading from   Developing Web Applications with Oracle ADF Essentials Quickly build attractive, user-friendly web applications using Oracle's free ADF Essentials toolkit

Arrow left icon
Product type Paperback
Published in Aug 2013
Publisher Packt
ISBN-13 9781782170686
Length 270 pages
Edition 1st Edition
Arrow right icon
Toc

Example application


The simple DVD rental application that we are building needs programming in two places:

  • To register a rental (create new record)

  • To register a return (update an attribute value)

Registering a rental

You probably remember from Chapter 3, Creating Task Flows and Pages, that registering a new rental is simply a matter of registering two data values when the store clerk presses a button. The screen is shown in the following screenshot:

In this simple demo application, we are assuming that the clerk will read a customer ID from a membership card and an inventory ID from the cover of the DVD –– in a more user-friendly application, you could of course expand on this. But for now, we just need to insert a new record into the Rental table when the user has entered two values and pressed the button.

Creating a bean

Start by opening the RentDvd page fragment and double-clicking on the Register rental button. This brings up the Bind Action Property dialog where you can click on New to create...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime