public void scrollTo(String clientId) {
        executeScript("PrimeFaces.scrollTo('" + clientId + "');");
    }
Scrolls to a component with the given clientId.

@param clientId clientId of the target component.
primefaces/src/main/java/org/primefaces/PrimeFaces.java