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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:47:46+00:00 2026-05-27T15:47:46+00:00

I am trying to work with the p:poll JSF tag, and using a code

  • 0

I am trying to work with the p:poll JSF tag, and using a code sample I found on the net. But I keep getting an error. The system doesn’t seem to find the property ‘increment’, although it exists in the bean.

I use the following:

<h:outputText id="txt_count" value="#{navBean.count}" /> 
<p:poll actionListener="#{navBean.increment}" interval="1000" update="txt_count" />

It is inside a view, and form, like this:

<f:view>
<h:form>

with the appropriate closing tags. When I hit it, it generates a Property ‘increment’ not found on type com.roberts.ui.NavBean

The increment method is there:

public void increment(ActionEvent actionEvent) {
    count++;
}

What am I doing 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-05-27T15:47:47+00:00Added an answer on May 27, 2026 at 3:47 pm

    I finally got around to doing this. Here’s a full description & code:

    Download the latest prime faces from here: http://www.primefaces.org/downloads.html

    Get the documentation pdf, 3.0.RC2, from here:
    http://www.primefaces.org/documentation.html

    The xmlns for this latest release is: xmlns:p=”http://primefaces.org/ui”

    In the xhtml file (for doing the poll every 3 seconds):

    <h:form>
    <h:outputText id="txt_count" value="#{counterBean.count}" /> 
    <p:poll listener="#{counterBean.increment}" interval="3" update="txt_count" />
    </h:form>
    

    In the CounterBean:

    private int count = 1;
    
    public int getCount() {  
        return count;  
    }  
    
    public void setCount(int count) {  
        this.count = count;  
    }  
    
    public void increment() {  
        setCount(getCount() + 1);  
    }   
    

    That’s all. It works flawlessly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to work through the problems on projecteuler.net but I keep running into
Im trying to work with following code i getting this error at xsltProcessor.importStylesheet Error
I am trying to work on some stuff using the Scanner for input, but
I am trying to work out through the sample code that comes with Fast
Programming Student here...trying to work on a project but I'm stuck. The project is
Trying to work with a trivial navigation menu using django templates, I'm having trouble
When trying to work in QtCreator, there is a problem with code completion for
trying to work out how to install zipArchive extension with MAMP, but not having
After trying to work on someone else's code, and so many different iterations, I
trying to work past an issue when using a resque job to process inbound

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.