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