Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6184871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:36:50+00:00 2026-05-24T01:36:50+00:00

I am working on a JSF 2.0 project, and learning the benefits of using

  • 0

I am working on a JSF 2.0 project, and learning the benefits of using System Events. However, the book I’m referencing ‘Core Java Server Faces 3rd Edition’ lists a total of 14 system event types that can be used in the f:event tag’s type attribute. Some of them work as I would expect, e.g. “preRenderComponent” on a UIComponent tag, or “preRenderView” on a UIViewRoot tag. But, besides those two, and a select few others, none of the other events mentioned in the book work. For example, I can’t get the postRestoreState type of event to work on a UIComponent. Instead, when JSF tries to render the page, I get a ClassNotFound Exception, presumably to the System Event class that is supposed to handle postRestoreState events, or whatever event it is I’m trying to listen for.

Why don’t these other event types work? Is there some other library I need, or is there some other way of implementing a system event listener that I need to use. Below is an example of one such tag that is failing:

            <h:commandLink
                action="editPlant"
                value="#{appMessages.UsersNavigationAddPlant}"
                styleClass="#{userSession.selectedStyle}"
                >
                <f:event type="postRestoreState" listener="#{userSession.setSelectedStyle()}" />
            </h:commandLink> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:36:51+00:00Added an answer on May 24, 2026 at 1:36 am

    It appears that you need the full Class name:

    <f:event type="javax.faces.event.PostRestoreStateEvent" listener="#{bean.postRestoreState}"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on project in JSF, using Tomcat 7. The application will have
I am currently working on a JAVA web application using JSF, Facelets, JSTL and
I'm working on an Enterprise project with Java EE 5 and JSF 2.0 (Mojarra
I'm working on a project using JSF 1.2 deploying a portlet to WebSphere Portal
I'm working on a project using JBoss 6.1.0.Final, JSF 2.0.3, EJB3 and JPA 2
I'm using JSF 2.0 in my web project. But navigation is not working properly,
I'm working on a JSF 2.0 project using Mojarra, PrimeFaces and Tomcat 6.x, but
I'm working on a project using JSF/Facelets. I want to do some CSS changes
I'm working on a project using JSF/Facelets and a Style Sheet in order to
I've been working on a Java EE 6 project (EJB 3.1, JSF 2, JPA

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.