Results 1 to 2 of 2
- 03-29-2011, 07:32 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 21
- Rep Power
- 0
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?
- 04-01-2011, 04:15 PM #2
Similar Threads
-
problem about using ajax
By hei1233212000 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 03-22-2011, 09:17 AM -
ajax problem
By anthrax in forum Advanced JavaReplies: 2Last Post: 12-24-2009, 01:21 PM -
JSP - AJAX problem
By MaheshReddy in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2009, 01:54 AM -
The Slogan Poll
By CaptainMorgan in forum Suggestions & FeedbackReplies: 68Last Post: 06-30-2009, 03:39 AM -
Best Ide Poll
By greyhat in forum New To JavaReplies: 5Last Post: 05-23-2008, 12:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks