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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:05:26+00:00 2026-06-04T07:05:26+00:00

Can I send Ajax update commands to JSF components that have not been rendered

  • 0

Can I send Ajax “update” commands to JSF components that have not been rendered due to render option previously set to false:

render="#{BackingBean.doRender}"

doRender is set to true just before “update” has been sent.

Is this the right way?

I am using PrimeFaces and one component does not show after update even doRender is set to true in the meantime.

  • 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-04T07:05:27+00:00Added an answer on June 4, 2026 at 7:05 am

    The ajax update works by JavaScript with the JSF-generated HTML DOM tree (as the webbrowser has retrieved). If a JSF component is not rendered, then it does not appear in the HTML DOM tree at all and hence JavaScript can’t find anything to update.

    You need to update a parent component instead, which is always rendered.

    E.g.

    <h:panelGroup id="foo">
        <h:someComponent rendered="#{bean.rendered}" />
    </h:panelGroup>
    

    with

    <p:commandButton ... update="foo" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that can send text to any other program for further
I have a ajax call to a controller that is supposed to send me
I have an HTML Table that looks like this: The user can update any
Alright, so I have some jQuery code that will send an AJAX request to
I'm familiar enough with Ajax and JSON that I can send a request and
Can anybody pls tell me, how can i make a AJAX request and send
I can not figure out why the following AJAX code will only load the
I have this form which can insert/update values into database table. <div id=settingsdiv style=width:350px;
I have a ajax call to a php script that updates my MySQL DB
Im having a very weird issue. I have a normal ajax call that upload

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.