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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:11:07+00:00 2026-05-23T11:11:07+00:00

I have a managed bean under ViewScope. It has an instance variable inside it.

  • 0

I have a managed bean under ViewScope. It has an instance variable inside it.

MetaData object has a inputItem object List.

@ManagedBean
@ViewScoped
public class ConBean implements Serializable {

     private MetaData metadata;

     @PostConstruct
     @SuppressWarnings("unchecked")
     public void init() throws IOException {
       this.metadata = new MetaData ();
     }

     public void proc(){
        List<InputItem> inputs= new ArrayList<InputItem>();
        inputs.add(***** code to populate the inputItem List);
        //after populating, inputs added to the metadata
        metadata.setInputs(inputs);

     }

//getters & setters
}

in my JSF , input list is populated inside a UI repeat.

<div id="inputplaceholder">
<ui:repeat value="#{conBean.metaData.inputs}" var="content">

</ui:repeat>
</div>

the div inputplaceholder is periodically updated using a richfaces poll.

<a4j:poll id="poll" interval="12000" action="#{conBean.proc}"
                                  execute="@form" render="inputplaceholder"/>

The problem that I have is even though inputItems are set to the metaData object correctly inside the proc() method, when the view is rendered/partially updated, it doesn’t get highlighted in the UI. so partial update takes no effect. I tried moving

this.metadata = new MetaData ();
inside the proc method but had no luck.

any ideas and help is highly appreciated.

thanks …

  • 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-23T11:11:08+00:00Added an answer on May 23, 2026 at 11:11 am

    Did the partial render really take place? This is impossible. There is namely no JSF component with the ID inputplaceholder. You assigned it to a plain HTML <div> element. Replace it by a fullworthy JSF component:

    <h:panelGroup layout="block" id="inputplaceholder">
    

    Also, since you used a relative ID in the render attribute, it will only scan for components in the same parent naming container component. The <ui:repeat> is such one, however the component with the desired ID is placed outside it. You’d like to use an absolute ID instead. Assuming that it’s inside a <h:form> with a fixed ID:

    <h:form id="myform">
        <h:panelGroup layout="block" id="inputplaceholder">
            ...
    

    then you should be referencing it in the render attribute as follows

    render=":myform:inputplaceholder"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Controller bean (SearchController) that has two managed bean as managed properties
I have a property in my JSF managed bean: private List<Long> selectedDataSets; I initialize
I have an object (Ticket), which has a list of other objects (Message). Message
I have a managed bean called: @ManagedBean(name=configBean) @SessionScoped public class configBean implements Serializable {
I have one method in my managed bean which returns javascript as a string.
Is it possible to have a managed bean created only on some pages i.e.
I am new to JSF and managed beans. I have a managed bean with
I have a session scoped managed bean, with a property current . If I
Im using websphere server and JSF 2.0 In my managed bean i have declared
I have a JSP with a managed bean. I want to display a message

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.