• Complain

Michael Müller [Michael Müller] - Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise

Here you can read online Michael Müller [Michael Müller] - Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Michael Müller [Michael Müller] Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise
  • Book:
    Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2018
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Master the Java EE 8 and JSF (JavaServer Faces) APIs and web framework with this practical, projects-driven guide to web development. This book combines theoretical background with a practical approach by building four real-world applications. By developing these JSF web applications, youll take a tour through the other Java EE technologies such as JPA, CDI, Security, WebSockets, and more.

In Practical JSF in Java EE 8, you will learn to use the JavaServer Faces web framework in Java EE 8 to easily construct a web-based user interface from a set of reusable components. Next, you add JSF event handling and then link to a database, persist data, and add security and the other bells and whistles that the Java EE 8 platform has to offer.

After reading this book you will have a good foundation in Java-based web development and will have increased your proficiency in sophisticated Java EE 8 web development using the JSF framework.

What You Will Learn

  • Use the Java EE 8 and the JavaServer Faces APIs to build Java-based web applications through four practical real-world case studies
  • Process user input with JSF and the expression language by building a calculator application
  • Persist data using JSF templating and Java Persistence to manage an inventory of books
  • Create and manage an alumni database using JSF, Ajax, web services and Java EE 8s security features.

Who This Book Is For

Those new to Java EE 8 and JSF. Some prior experience with Java is recommended.

Michael MГјller [Michael MГјller]: author's other books


Who wrote Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise? Find out the surname, the name of the author of the book and a list of all author's works by series.

Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

Michael Mller 2018

Michael Mller , Practical JSF in Java EE 8 ,

10. Introducing the Books Application

Michael Mller 1

(1) Brhl, Nordrhein-Westfalen, Germany

Books is an application to help manage and list book reviews. This part covers the following:

  • JSF templating

  • Using CSS in a web application

  • Persisting data with the Java Persistence API (JPA)

  • Injecting beans with Context and Dependency Injection (CDI)

  • Working with lists and tables

  • Working with text resources

  • Internationalization and localization

  • Language switcher

  • Validation

Books Requirements

The intent of the Books application is to present to the user an overview of book reviews penned by an author. For each book, reviews that are either external or published with this application may be linked. This might be a link to an external online source (such as a different website) or simply to some information about a printed medium where the review is published. The user can list books by category and can search. There are quite a few requirements , which can be put out as small user stories:

  • As a review author, I would like to enter information about a book

  • As a review author, I would like to enter a review

  • As a review author, I want to maintain basic data like categories

  • As a user, I would like to read book-information and reviews

  • As a user, I would like to search for books by title, author, and ISBN

  • As a user, I would like to list books by category

  • As a user, I would like to retrieve and choose from lists of all books and all reviews

  • As a user, I would like to choose my preferred language, if available

All features available to the user use the same look and feelthat is, the navigation will stay on the same place whether a book or a review is currently displayed. The admin look and feel differs to visualize the different domain. The admin pages have a different background color to indicate the admin section. To achieve that, JSF templating is used. Later on, in the chapters in part IV, Alumni, Ill discuss approaches to change the look and feel according to the users choice.

Every book will be displayed in a table with the following information :

  • Title

  • Subtitle

  • Author(s)

  • Publisher

  • Year

  • Language

  • ISBN

  • Short descriptive text

  • Cover image

  • Reference to external and or internal review(s)

  • Reference to category or categories

Although most information like title, author, publisher, and more will remain the same for every language, other information, such as the short descriptive text and categories, may be displayed in different languages. The current live version of Books supports English and German. This isnt a technical restrictionits only limited by translation capabilities.

Beside books, the Books application displays reviews . This structure is simple:

  • The book the review refers to

  • The language of the review

  • The review content

The application automatically adapts to different display sizes (thanks to responsive design).

Although the requirements are pretty simple, this application demonstrates a lot of techniques. Books is not a demo application only and is live on my website at http://it-rezension.de .

Because the applications data is well structured and homogeneous, it fits well with a SQL database. Books uses the JPA to access the database.

The look and feel and the adoption to various display sizes is realized by using Cascading Style Sheets (CSS) .

You can see the live version of Books on my website. By the way, you might use it as a bibliography in addition to this book.

Development Order

Nowwhere to start? With a prototype of the GUI that can be provided to the customer for further review? In many projects, that might be the option of choice. Some dialogs might be sketched first, including some navigation buttons to show the planned behavior of the software. These prototypes might be built by using presentation software or directly implemented with the target language (here, Java with JSF). The latter method conveys a better feeling to the customer.

Or should we model the big picture and the activity by drawing UML or other diagrams? Or design the data model (for example, with an entity diagram) first?

In practice, youll see all these approaches and many more. Which one is the best way to start a project depends on the project properties and the personal preferences of those involved.

The following procedure is what we call the waterfall model :

  1. Collect and write down all requirements

  2. Design and document the overall software architecture

  3. Write down all planned functionality in detail

  4. Program everything

  5. Test the whole system

  6. Write the user documentation and deliver it

That seems an elaborate method. And by the time the system is delivered, the requirements may have changed or some function may behave differently than how the customer expected (if the customer had a clear view about what to expect). A lesson: the waterfall method mostly fails. Agile methods are preferable. The Agile Manifesto (read it at http://agilemanifesto.org ) was a milestone in this movement.

Chop the project into pieces that are iterative and implemented in increments. For each iteration , we need a short planning session. A piece of software is developed or refined and tested andvery importantdelivered to the customer, or at least to an internal substitute of the customer. Thus, a short feedback loop can be included in the development process. The customer gets a quick overview of the software. Requirement changes can be incorporated quickly. Many agile people dont like the comparison, but in agile, within each iteration the development in fact follows something similar to the waterfall model, though a (very) small waterfall with a short feedback loop.

As a result of an iterative process, the development order might be changed due to influencing factors. And the detailed order becomes a bit less important because after every iteration , or sometimes within it, a correction might be applied.

For data-driven applications like Books (which mostly presents data stored somewhere to the user), I prefer to create dialog boxes as soon as possible. Because the first dialog should present a bit of the future look and feel to the user, we need an overall layout, a kind of frame where the dialog will be embedded.

What data should be used for this dialog? It depends on the size of the project, the number of people involved, their experience, and more. In any case, a good starting point is the data model. Depending on the team structure, the dialog can use this model and mock away any persistence. Database specialists might connect the data model via a service layer to the database.

Mocking data may be useful for testing or if different persons implement different parts for one feature (for example, the database part, service part, or presentation part). To present the work in progress to the user, some real data handling often suits better. As well see after implementing a first dialog in the next chapter, the service layer to access the data can be generalized and reused. So, its no problem to work with persisted data for each dialog from the very beginning.

In case of Books, the data structure isnt difficult to designwe start with the data model and database access and then create the dialog that uses this data. Working iteratively, this procedure is similarly repeated for every dialog.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise»

Look at similar books to Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise»

Discussion, reviews of the book Practical JSF in Java EE 8 : Web Applications ​in Java for the Enterprise and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.