Sticky Sticky component positions the target component as fixed so that the component stays in window viewport during scrolling. Scroll down to see the sticky toolbar.
<p:toolbar id="tb">
    <f:facet name="left">
        <p:commandButton type="button" value="New" icon="ui-icon-document" />
        <p:commandButton type="button" value="Open" icon="ui-icon-folder-open"/>
    </f:facet>
    <f:facet name="right">
        <p:commandButton type="button" title="Save" icon="ui-icon-disk"/>
        <p:commandButton type="button" title="Delete" icon="ui-icon-trash"/>
        <p:commandButton type="button" title="Print" icon="ui-icon-print"/>
    </f:facet>
</p:toolbar>

<div style="height:800px"></div>

<p:sticky target="tb" />
                
PrimeTek, Copyright © 2015
All rights reserved.
Running PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.