Reputation: 2314
I am doing Primefaces poller and I would like to select multiple items with Styleclass="updateable" inside the form. What would be the correct update selector for p:poll in this case? I need only to update parts of the form when the poll is triggered.
Upvotes: 0
Views: 3571
Reputation: 37051
Here you go
<p:poll interval="3" listener="#{myBean.myMethod}" update="@(.updateable)" />
Also take a look at the showcase: PrimeFaces Selectors - @(selector)
PFS does not use findComponent() of UIComponent. It finds the components at client side so it still needs an id to sent to server to mark which components to update so you also need to give an id to components who you select with PFS although you are not reference these ids yourself. JSF impls do not render autogenerated clientIds to keep page size smaller if you don't give an explicit id. (Cagatay Civici)
Upvotes: 2