Book Image

Vaadin 7 Cookbook

Book Image

Vaadin 7 Cookbook

Overview of this book

Table of Contents (19 chapters)
Vaadin 7 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Optimizing Vaadin applications for search engines


Vaadin is a RIA framework that should be used for building business applications (for example, an online accountant application). Vaadin is not meant for building web pages that should be searchable on the Internet.

Search engines can see only what a text browser can see when crawling our web pages. A Vaadin application is actually a JavaScript application that is handling rendering and communication with the server. A full explanation of this problem can be found at https://developers.google.com/webmasters/ajax-crawling.

If we want to make our Vaadin application searchable on the Internet, we need to provide an HTML snapshot that could be processed by search engine robots.

We can easily test what is returned to the search engine when we add _escaped_fragment_ into the URL.

In this recipe, we are going to implement a simple application that will be visible for crawling. There will be two views implemented. The first will be a classic Vaadin...