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
Data-Centric Applications with Vaadin 8

You're reading from   Data-Centric Applications with Vaadin 8 Develop and maintain high-quality web applications using Vaadin

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781783288847
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alejandro Duarte Alejandro Duarte
Author Profile Icon Alejandro Duarte
Alejandro Duarte
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Creating New Vaadin Projects FREE CHAPTER 2. Modularization and Main Screens 3. Implementing Server-Side Components with Internationalization 4. Implementing Authentication and Authorization 5. Connecting to SQL Databases Using JDBC 6. Connecting to SQL Databases Using ORM Frameworks 7. Implementing CRUD User Interfaces 8. Adding Reporting Capabilities 9. Lazy Loading 10. Other Books You May Enjoy

Implementing public and private views

Frequently, web applications have two main screens. One for visitors who are not authenticated, and one for users who are authenticated. It makes sense to implement the UI in a way that reflects this exactly. The idea is to create two custom components (using the Composite class); one for public access, and one for authenticated users. So, for now, let's suppose we have a custom PublicComponent class that shows the login form and a PrivateComponent that shows something like the following:

When the user is successfully authenticated, the PrivateComponent is shown. When the Logout button is clicked, the user should be redirected to the PublicComponent. The Vaadin UI implementation (VaadinUI in this chapter's example) should reflect the fact that there are two main screens that can be shown depending on whether the user is authenticated...

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