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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:06:42+00:00 2026-06-08T18:06:42+00:00

I am facing very weird issue with JSF2.0 Ajax Tag. Below are the steps

  • 0

I am facing very weird issue with JSF2.0 Ajax Tag. Below are the steps that causes an issue for me

  1. My project uses JSF2.0 and Spring 3.0. The JSF is wired to spring controller and life cycle is managed by Spring.
  2. My Controller is Request Scoped.

Everything works fine till this point

i have a selectOne dropdown and on selection of a value on drop down it renders bottom portion of screen which has another dropdown. I use a rendered attribute on a parent panelgroup to show and hide this drop down.

However for the newly rendered drop down on selection of a value the ajax listener(F:ajax tag defined inside it) is not getting invoked. I see the following happening

  1. The bean is reintialized as it is request scope.I see my postconstruct getting executed.
  2. i see success message in the data object in client.

Only thing missing is that the listener method is not invoked.

Is there anyway to debug the life cycle and find what is going wrong?

  • 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-06-08T18:06:42+00:00Added an answer on June 8, 2026 at 6:06 pm

    If the rendered attribute of one of the parent components of <f:ajax> evaluates false during processing the ajax request, then the ajax action listener won’t be invoked.

    A request scoped bean is recreated on every single request, so all its properties would be resetted to default, unless initialized otherwise in the (post)constructor. If the property behind the rendered attribute isn’t properly reinitialized based on some request parameters, then it would evaluate false like as on the initial request.

    To fix it, you’d need to do proper initialization in bean’s (post)constructor based on request parameters or just put the bean in the JSF view scope.

    See also:

    • How to choose the right bean scope?
    • commandButton/commandLink/ajax action/listener method not invoked or input value not updated
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my 2nd ASP.NET MVC project I'm facing a very weird problem: when I
I am facing a very strange issue. I have a SharePoint webpart that displays
I've been facing in the last days a very weird and specific issue under
I am facing very strange issue , that in one of my page pageload
I am facing very critical issue with my asp.net web application in which i
Facing some issue in Talend Admin Console, the jobs that are running from IDE
I am facing very strange issue. When I was running my app in iPhone
A very standard example of the problem that I am facing is that of
I'm facing with an old problem that it made me confuse very much. So
We are facing a weird issue. We have NFS set up with 2 machines

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.