poll.start() won't work

UI Components for JSF
Post Reply
gedanke
Posts: 12
Joined: 20 May 2011, 17:49

08 Jun 2011, 14:33

Hey!

Can anyone see why this won't work? The poll is just not started. (If I set autoStart="true", I can see that it does what it should do.)

Code: Select all

<h:form>
	<p:commandButton value="Search" action="#{someBean.search}" ajax="false" onclick="poll.start()" />
	// ...		
       <p:poll interval="3" update=":someForm:someComponent" widgetVar="poll" autoStart="false" />
</h:form>
Thanks!
JSF 2 (MyFaces), PrimeFaces 2.2.1, Tomahawk 7.


cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Jun 2011, 14:35

Also you are posting the form causing a request so poll is gone.

gedanke
Posts: 12
Joined: 20 May 2011, 17:49

08 Jun 2011, 16:12

Thank you very much for that hint! It's working now.

And sorry, I forgot to mention my environment. It's in the signature now.
JSF 2 (MyFaces), PrimeFaces 2.2.1, Tomahawk 7.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests