I need to scroll my page up from commandButtom.
<p:commandButton id="search"
update="contentForm:campaignListcontentForm:noResults"
icon="fa fa-search"
value="#{messages.labelSearch()}"
styleClass="btn-search"
actionListener="#{marketingCampaignBean.setTrueClearEntityModel()}"/>
and my dataScroller
<p:dataScroller id="campaignList"
value="#{marketingCampaignBean.entityModel}"
var="marketingCampaign"
lazy="true"
chunkSize="21">
I used JS onclick="window.scrollTo(0,0);
it´s working, but i can´t use it in my project.
I' using primefaces 6.2 in a xhtml file using jsf. The above option feels slugish and i wouldn´t want to go that route.