Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default problem with primefaces ajax poll

    i'm doing this example
    CounterBean.java
    @ManagedBean
    public class CounterBean implements Serializable {
    private int count;
    public void increment(ActionEvent actionEvent) {
    count++;
    }
    // getter and setter
    }
    index.xhtml
    <h:form prependId="false">
    <h:outputText id="txt_count" value="#{counterBean.count}" />
    <p:poll interval="3"
    listener="#{counterBean.increment}" update="txt_count" />
    </h:form>
    including xmlns:p="http://primefaces.prime.com.tr/ui" and lib primefaces-2.2.jar, deplying on tomcat.
    problem is that polling doesn't work
    anyone can help me?

  2. #2
    leen's Avatar
    leen is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default

    i would that but i have few of knowledge
    i think the members helping u

    good luck

Similar Threads

  1. problem about using ajax
    By hei1233212000 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-22-2011, 09:17 AM
  2. ajax problem
    By anthrax in forum Advanced Java
    Replies: 2
    Last Post: 12-24-2009, 01:21 PM
  3. JSP - AJAX problem
    By MaheshReddy in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-27-2009, 01:54 AM
  4. The Slogan Poll
    By CaptainMorgan in forum Suggestions & Feedback
    Replies: 68
    Last Post: 06-30-2009, 03:39 AM
  5. Best Ide Poll
    By greyhat in forum New To Java
    Replies: 5
    Last Post: 05-23-2008, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •