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

  • SEARCH
  • Home
  • 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 6062785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:05:29+00:00 2026-05-23T09:05:29+00:00

I have a JSF 2.1 (MyFaces) app running using several Session Beans (All the

  • 0

I have a JSF 2.1 (MyFaces) app running using several Session Beans (All the beans are session beans).
The timeout is defined in web.xml as such:

<session-config>
    <session-timeout>3600</session-timeout>
</session-config>

Which translates to 1 hour.

The problem is that on normal usage I get the No Saved View... exception:

SEVERE: An exception occurred
javax.faces.application.ViewExpiredException: /mainPanel.jsfNo saved view state could be found for the view identifier: /mainPanel.jsf
    at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:128)

The beans are, currently, defined in faces-config.xml for compatibility with Eclipse’s ide.

I’m not sure what could be causing this and it’s definitely not timeout.
Any ideas what could be the problem?

If there is any further information I can provide, let me know..

Thanks!

P.S – there is no jsf-2.1 tag

Update 1 I just figured 60 meant 1 minute! 🙂 That could be the problem. I will close the question if it turns out that way

Update 2 Thats wasn’t it… Some more information That might be helpful:

  1. While the error is specifically for /mainPanel.jsf, this is actually a composition of xhtml’s using <ui:include>
  2. It happends only when I click one specific point in the app. The code that runs as a result of the click is:

Jquery Code:

    $(document).ready(function() {

    $("#someTable tr:not(:first)").click(function(event) {

            var someValue = $(this).find("input:hidden").val();
            $('#currently_selected').val(someValue );
            $('#currently_selected').change();

        });
    });

JSF 2 Code:

<h:form prependId="false" class="hide">
    <h:inputText value="#{someBean.someBeanValue}">
        <f:ajax event="change" listener="#{someBean.someBeanValueChanged}" render=":anotherForm"
            onevent="ifCompleteSetWindowHash" />
    </h:inputText>
</h:form>
  • 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-23T09:05:30+00:00Added an answer on May 23, 2026 at 9:05 am

    At first view it seems to be some side effect over javax.faces.ViewState hidden field. If this field is ovewritten, a ViewExpiredException will be thrown. Try to do the same you are doing with other different javascript code.

    Anyway it is not related to your session-config parameter. The information provided here is insuficient to reproduce it. If the previous suggestion does not solve your problem, please create an issue on MyFaces Issue Tracker and attach an example. In this way you’ll get it solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed web applications using JSF (myfaces components). But in these days of
All the tutorials I have seen seem to use *.jsf , *.faces , or
I'm deploying a JSF (myfaces, restfaces, and richfaces) app to OC4J. I don't want
I've got a JSF app built with MyFaces 1.2.8, Facelets 1.1.14 and building it
I want to have a generic menu in my JSF (MyFaces 1.2) application. <h:form>
I am using JSF Myfaces Impl 1.2 without tomahawk and other libs : I
I am upgrading my app to JSF 2 from JSF 1.2. I have ran
I have a JSF Web application, and at some point i present the client
If you have a JSF <h:commandLink> (which uses the onclick event of an <a>
In JSF is it possible to have a datatable displays records as follows? [Name

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.