Home > JavaEE > ‘Learning Vaadin’ is out

‘Learning Vaadin’ is out

This is it! After 10 monts of work, my first book is out: ‘Learning Vaadin’ is now available at Packt and Amazon.

First things first, what’s is Vaadin? Vaadin is a presentation-layer web framework that let you easily develop Rich Internet Applications. It does so by provding an abstraction over the Servlet API and by letting developers assemble components to design screens (as opposed to pages as in previous generation web frameworks). If you got 5 minutes to spare, you can go try the tutorial and be convinced yourself. Note that I do not hold Vaadin for a golden hammer, but in most contexts, it just is the right tool.

Now, why write a book? An imperative prerequisite is to believe in the subject. For me, it was love at first sight… I already wrote on Vaadin and used it in real pre-sales demos. During a conversation with Joonas Lehtinen, Vaadin’s CEO, he mentioned he had been approached by Pack to write a book on the subject. My brain processed the information and mere minutes later, I proposed myself.

Although writing a book is like coding in a project in many ways: there’s a schedule, limited time, reviewing (testing), rewriting (bug fixing), ups and downs, it has not been easy for me. I’m admirative of people who regularly write books in their spare time. They need discipline, of course, but also a supportive family and the right publisher. Fortunately, I had these assets this time and I’m now proud to have finished the book.

But is it finished? The strangest is that I do not realize yet. I’m waiting to hold a hard-copy in my hands to really think ‘I’ve done it’. Once received, I believe I will be entitled to some much-deserved R&R :-)

‘Learning Vaadin’ in the news:

You’re welcome to mention other references I may have missed.

email
Categories: JavaEE Tags:
  1. Hristo
    December 2nd, 2011 at 11:45 | #1

    Hello!

    I’ve got the ebook version, and I like it, it’s refreshing and very up-to-date with Vaadin and the technology.

    There is one common need for any web application and it is the possibility to authenticate the user and remember that he is logged in for future visits. This can be done for example with openid and cookies. I am surprised that I can not find information on how to do that with Vaadin, and it is so basic need… I didn’t found info on that in your book either. Am I missing something here, or this is too hard to be done?

    Thanks for your time and the awesome book!

  2. December 2nd, 2011 at 11:55 | #2

    Thanks for your kind comment.

    Regarding your question, you can easily plug the authentication process you want. What I would do is:

    1. when the authentication is successful, set a cookie
    2. when initializing the Application, look for the cookie and display the login window (when not found) or the main window (when found)

    Additionally, check the setUser() method on the Application object (it’s in the book) in order to store the logged in user and use it in windows.

    Hope this helps!

  3. Hristo
    December 2nd, 2011 at 12:43 | #3

    Yes, this helps!

    Thanks for the hints!

    I would like to put the source code from the examples in the book on github to be able to share/collaborate as I experiment. Is this ok?

  4. December 2nd, 2011 at 12:56 | #4

    Good to know. As for the code source, I wouldn’t recommend you sharing it since it is copyrighted.

  5. Hristo
    December 2nd, 2011 at 13:16 | #5

    Ok, I will not share. It would be cool, but maybe with the next edition, if you decide to :)

  6. December 2nd, 2011 at 13:20 | #6

    Sadly, it’s not my call to make: I’m not the copyright owner.

  7. Denis
    December 8th, 2011 at 02:29 | #7

    Hi Nicolas,

    Great book so far!
    There is some code missing though. I can’t find TwitterService anywhere in the book.
    So, example will not work.

  8. December 8th, 2011 at 09:42 | #8

    The latest code package from Packt should answer your question. Alternatively, I’ve posted the TwitterService here.

  1. No trackbacks yet.