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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:36:54+00:00 2026-06-04T22:36:54+00:00

I have a ui:repeat. I want it to refresh for every 5 seconds. I

  • 0

I have a ui:repeat. I want it to refresh for every 5 seconds. I tried p:poll but it doesnt work. Is there any way to make this working?

<ui:repeat value="#{videoImpl.fGetAllComments()}" var="v" id="commentlist">
<div class="comment-entry"><h:outputText value="#{v.comment}"/></div>
</ui:repeat>

<p:poll update="commentlist" interval="5" />
  • 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-04T22:36:57+00:00Added an answer on June 4, 2026 at 10:36 pm

    The <ui:repeat> doesn’t generate any HTML by itself. So there is no element with id="commentlist" in the HTML output and hence the JS code behind <p:poll> can’t find anything to update.

    Wrap it in another JSF component which renders a fullworthy HTML element, such as <h:panelGroup>, and update it instead.

    <h:panelGroup id="commentlist">
        <ui:repeat value="#{videoImpl.fGetAllComments()}" var="v">
            <div class="comment-entry">#{v.comment}</div>
        </ui:repeat>
    </h:panelGroup>
    
    <p:poll update="commentlist" interval="5" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client report (rdlc) and want to repeat some textboxes in every
I have an image that I want to position in the right and repeat
I want repeat sent windows messages to my winforms application. Now, I have class
I'm trying to work out if there's a built in way in ASP.NET MVC
I wrote the following loop since I have to repeat the same/similar code 25
I have created a repeat control that list some documents. I would like to
I have a simple 'repeat with' in an AppleScript, and would like to move
I have a ListBox and I need to repeat the styles to be the
i have used following code to repeat a process creation/close iteratively dim vProcessInfo as
I have an EditBox control in a repeat control. Its iteration formula is: return

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.