문제

In one of the blogs i saw that the components can be scanned in the ajax call, i'd like to know how to scan for multiple components using p:component method

<p:ajax listener="#{providerSelectBean.onRowSelect}"  
update=":#{p:component('output')}" event="rowSelect"/>

Thanks & Appreciate your reply.

도움이 되었습니까?

해결책

You're best off using a PrimeFaces Selector

update="@(.ui-panel)"

This would update anything that has .ui-panel as a class, refer to http://www.primefaces.org/showcase/ui/selectors.jsf

How do PrimeFaces Selectors as in update="@(.myClass)" work? Gives a good example aswell

And: How to find out client ID of component for ajax update/render? Cannot find component with expression "foo" referenced from "bar"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top