In the previous chapter, we looked at the components necessary to build a simple Seam application. The simple application that we developed supported only one JSP page. However, in the real world, this is far from sufficient! Within Seam applications, there are several different ways to navigate through web pages. We will discuss these ways in this chapter, including:
Simple navigation
JSF style navigation
Seam jPDL navigation
In the previous chapter, we saw that performing business logic and redirecting a user to a different web page can be performed by adding a commandButton
to a web page. The action
property of a commandButton
specifies the business method to be executed, and this method is then responsible for routing the user to a web page. If we want to route the user back to the same page they were viewing before clicking on the actionButton
, the business method simply returns an empty string, as shown in the following code snippet.
<h:commandButton...