Navigation Model in JSF – Static Navigation

What is Navigation:
A website is a collection of web pages. Moving between web pages of a website is known as Navigation. User can switch from one webpage to another in any of these following ways,

  • Clicking a button
  • Clicking Hyperlink
  • Typing URL

Types of Navigation:

  • Static Navigation
  • Dynamic Navigation

Static Navigation:
Best example of Static Navigation is clicking on hyperlinks. A hyperlink may navigate the user to other webpages in the same website or different website. When the users click the hyperlink they are moved to the webpage linked to that hyperlink. This type of navigation, where user is moved to fixed webpage is known as Static Navigation.

Static Navigation Example: (Implicit Navigation)

<html xmlns=""
        <title>Navigation Model</title>
            Welcome to JSF
       <h:commandLink value="Welcome" action="page2"/>


<html xmlns=""
        <title>Facelet Title</title>
        Congrats! you have successfully completed static navigation!

After clicking the link it navigates to page 2,

By Sri

Leave a Reply

Your email address will not be published. Required fields are marked *