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 6622457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:24:28+00:00 2026-05-25T21:24:28+00:00

The bug is this – I have several forms in my JSF application. If

  • 0

The bug is this –
I have several forms in my JSF application.
If I activate AJAX calls outside a specific form for 20 clicks or more, I get a "No Saved View State Could be found for the view identifier" exception.

UPDATE 1 This only occurs when the state is saved on the server. When this option is set, the problem doesn’t occur:

<context-param>
    <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
</context-param>

END OF UPDATE 1

For example, suppose I have a form A, form B, form C in my app:
(The actuall app is very complex, I will try to bring all the relevant information)

<h:form>
  <h:commandButton value="A">
    <f:ajax render="@form"/>
  <h:commandButton>
<h:form>

<h:form>
  <h:commandButton value="B">
    <f:ajax render="@form"/>
  <h:commandButton>
<h:form>

<h:form>
  <h:commandButton value="C">
    <f:ajax render="@form"/>
  <h:commandButton>
<h:form>

One more important factor, only one form is visible at each point in time, the other forms have display:none.
Finally, All beans are session scoped.

Now, The following clicks will cause the exception (For each row, the last click causes the exception)

  1. Ax20, B
  2. Ax19, B, C
  3. Ax10, Cx10, B
  4. Bx5, Cx5, Bx5, Cx5, A

This will not cause an exception:

  1. Ax18, B, C, A.

In other words, If a button in a form is not clicked in the last 20 clicks, the next time it is clicked, a No save view state exception is thrown.
All buttons in the same form are equivalent to the form, meaning, if form A had buttons A1 and A2 then the following would not cause an exception:

  1. A1x20, A2
  2. A1x19, B, A2
  3. A1, A2x20, B, A1

Any Idea?!? This is driving me nuts.

  • 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-25T21:24:29+00:00Added an answer on May 25, 2026 at 9:24 pm

    You’ve exceeded the number of views in session limit from a single page on. The limit is by default 15, but is configureable by a context param in web.xml. Each form is technically a separate view with its own view state. When you continuously ajax-update one form while untouching other forms, then their view state in server side will slowly but surely expire.

    Saving the view state in the client side will indeed solve this problem, as nothing in the server side session will be stored. It only makes the response size a bit larger (bandwidth is however cheap nowadays).

    If you want to keep the view state in the server side, then you should render the other forms from the single ajax form as well so that their view state will be updated as well:

    <h:form id="A">
      <h:commandButton value="A">
        <f:ajax render="@form :B :C"/>
      <h:commandButton>
    <h:form>
    
    <h:form id="B">
      <h:commandButton value="B">
        <f:ajax render="@form :A :C"/>
      <h:commandButton>
    <h:form>
    
    <h:form id="C">
      <h:commandButton value="C">
        <f:ajax render="@form :A :B"/>
      <h:commandButton>
    <h:form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have this bug that only appears 30% of the time for the Release
I have recently discovered that I am affected by this bug http://www.mail-archive.com/mono-bugs@lists.ximian.com/msg71515.html Well, at
I have some data, like this: BUG DATE STATUS ---- ---------------------- -------- 9012 18/03/2008
Can someone recommend a workaround for this ironpython bug? I have a class contained
I have this really weird bug. When I scroll down my table view, down
I've been battling with this bug for 3 hours. I have checked the build
I have an annoying IE6 layout bug This screenshot shows the problem: Problem: Text
just to know if someone have any idea why this bug is happening. I
UPDATE: This bug appears to be Browser Specific to Chrome. I've clicked the link
I have this bug in Obj-C that is caused because the program is trying

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.