Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 18: Spring Web Flow and JSF > Spring Web Flow and JSF Configuration

Spring Web Flow and JSF Configuration

This section discusses the necessary configurations required for a web application running on Spring Web Flow, JSF 2, and PrimeFaces.

Adding Required Dependencies

For developing applications using Spring Web Flow and JSF 2 with PrimeFaces, the required corresponding dependencies are shown in Table 18-3. Add them into your project.

images

Configuring JSF

For a JSF application, we need to specify a JSF-dedicated configuration file (the faces-config.xml file under the /WEB-INF folder). This file typically stores the general JSF configurations, information on the managed beans (not required if you use the annotation style), and the navigation rules. However, we will use Spring Web Flow, which integrates with Spring Framework's IoC for DI, so the configuration required in this file is minimal. Listing 18-1 shows the content of the file (WEB-INF/faces-config.xml).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial