Vaadin 7 Cookbook - Ondrej Kvasnovsky, Jaroslav Holan

Vaadin 7 Cookbook

Buch | Softcover
387 Seiten
2013
Packt Publishing Limited (Verlag)
978-1-84951-880-2 (ISBN)
36,45 inkl. MwSt
Studibuch Logo

...gebraucht verfügbar!

  • Covers exciting features such as using drag and n anddrop, creating charts, custom components, lazy loading, server-push functionality, and more
  • Tips for facilitating the development and testing of Vaadin applications
  • Enhance your applications with Spring, Grails, or Roo integration

What you will learn from this book
  • Develop a Rich Internet Application in pure Java language
  • Create a Vaadin project in different IDEs and platforms
  • Explore the new Vaadin 7 features such as Extensions, URI fragments, Converter mechanism, and more
  • Understand and use different types of layouts
  • Use build-in atomic components such as button, table, text field, and more
  • Bind model to components and fetch data from the database lazily
  • Work with listeners and events and improve your web application by adding server-push add-ons
  • Integrate Vaadin into the Grails framework
It is really expensive and demanding to develop Rich Internet Applications from scratch. Vaadin is an amazing framework that contains many ready-made components for the creation of user interfaces. Applications created in Vaadin are compatible with all the latest versions of web browsers. Although the screenshots in this book are from Chrome, examples can also run on other browsers like Firefox Mozilla, Internet Explorer, and Opera.

"Vaadin 7 Cookbook" contains many practical recipes that we have gathered during the development of Vaadin applications. This book will help you to take your learning experience to the next level by giving you many solutions to the common problems faced along with explanations. There is even more than that. Vaadin 7 Cookbook goes beyond the basics and shows you how to build Vaadin application for real-world scenarios.

"Vaadin 7 Cookbook" starts with the creation of a project in various tools and languages then moves to components, layouting, events, data binding, and custom widgets. Vaadin, together with Grails, is a powerful tool for the rapid development of RIA applications and this is described in a chapter on how to work with GORM, Service, compiling a widgetset. The quality and stability of the application, testing the Vaadin code, and data management of Vaadin is also explained in detail.

"Vaadin 7 Cookbook" is focused on learning and understanding how to work with Vaadin as well as trying out Vaadin with other technologies such as Grails.

Jaroslav Holaň is a skilled and creative Sun Certified Java Programmer. His main focus of interest is on frontend applications. He has experience with web technologies such as Vaadin, GWT, Rich Faces, JSF, and has also created desktop applications in Eclipse SWT and JFace. He has worked on various software projects, ranging from banking systems to mobile applications. He is mainly focused on Java, but is open to other languages and technologies. When he's not programming, he's dealing with magic tricks.

Ondřej Kvasnovský is currently working as a Senior Java Developer in pricing the business for an American company, Vendavo. Ondrej has spent six years in a large international company working mainly for the banking industry in Scandinavia as a Java Programmer, Project Manager, and Manager. Ondrej's biggest free time interest is working on the Grails plugin for Vaadin (see http://vaadinongrails.com) and participation on projects using the Vaadin and Grails frameworks. He, together with other people, is taking care of the organization of the Java User Group in Ostrava, Czech Republic.

Preface
Chapter 1: Creating a Project in Vaadin
Introduction
Creating a project in Eclipse IDE
Generating a Vaadin project in Maven archetype
Building a Vaadin application with Gradle
Using Vaadin with Scala
Running Vaadin on Grails
Chapter 2: Layouts
Introduction
Creating an adjustable layout using split panels
Creating a custom layout
Controlling components over the CSS layout
Using CSS layouts for mobile devices
Binding tabs with a hard URL
Using Navigator for creating bookmarkable applications with back-forward button support
Aligning components on a page
Creating UI collections of components
Dragging-and-dropping between different layouts
Building any layout with AbsoluteLayout
Chapter 3: UI Components
Introduction
Viewing details of items in ListSelect
Inserting a button to remove a table row
Creating a line chart with Flot
Creating a pie chart with Highcharts
Drag-and-drop from the desktop
Using DateField with Joda-Time DateTime
Zooming with the slider
Restricting buttons in Rich text area
Styling components with CSS
Chapter 4: Custom Widgets
Introduction
Creating a TextField with counter
Creating a TextField only for digits
Creating a chroma-hash password field
Creating a tri-state checkbox using JavaScript
Styling widgets
Speeding up widget set compilation
Chapter 5: Events
Introduction
Responding immediately to an event in TextArea
Changing Label to TextField by double-clicking
Lazy loading in a table
Reordering columns and rows in a table
Customizing shortcuts
Adding click listener to the Link component
Creating a custom context menu
Updating messages in the menu bar using the ICEPush add-on
Updating the noticeboard using the Refresher add-on
Chapter 6: Messages
Introduction
Showing validation messages
Styling system messages
Showing a login form in pop-up view
Customizing tray notifications
Making a confirmation window
Showing a rich tooltip with an image
Informing about file transfers by a progress bar
Waiting for an indeterminate process
Showing information about browsers
Chapter 7: Working with Forms
Introduction
Creating a simple form
Generating fields from a bean
Binding fields to a bean
Using field validation
Using bean validation
Creating a custom validation
Creating a CRUD form
Filtering items using ComboBox
Chapter 8: Spring and Grails Integration
Introduction
Setting up a Vaadin project with Spring in Maven
Handling login with Spring
Accessing a database with Spring
Internationalizing Vaadin applications with Spring
Vaadin and Spring injector
Internationalizing Vaadin in Grails
Using Grails ORM for Vaadin application
Using Grails services in Vaadin
Adding a Vaadin add-on into Grails project
Chapter 9: Data Management
Introduction
Binding property to a component
Binding items to a component
Binding a container to a component
Creating a complex table – CRUD II
Filtering data in the table
Using converters
Storing the last selected tab name in cookies
Chapter 10: Architecture and Performance
Introduction
Building the core
The Login form with Model View Presenter
Model View Presenter for a view with two panels
Unit testing in an MVP pattern
Improving the application's startup time
Avoid sluggish UI – lazy loaded tables
Avoid sluggish UI – paged tables
Optimizing Vaadin applications for search engines
Chapter 11: Facilitating Development
Introduction
The basics of test-driven development in Vaadin
The basics of mocking in Vaadin
Testing a table with a container
Testing the UI with TestBench
Recompiling widgetsets in Maven
Auto-reloading changes in Maven
Blocking uncaught exceptions in the production mode
Chapter 12: Fun
Introduction
Magic tricks
Can you raed tihs?
Goodbye, world!
Index

Erscheint lt. Verlag 2.4.2023
Zusatzinfo black & white illustrations
Verlagsort Birmingham
Sprache englisch
Maße 191 x 235 mm
Gewicht 693 g
Einbandart kartoniert
Themenwelt Informatik Office Programme Outlook
Informatik Programmiersprachen / -werkzeuge Java
Informatik Software Entwicklung Objektorientierung
ISBN-10 1-84951-880-7 / 1849518807
ISBN-13 978-1-84951-880-2 / 9781849518802
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich