I am facing a challenge where I want the tabView to stay fixed at the top of the view when a user scrolls down, while allowing the content within the tab to scroll. I tried using p:sticky but it seems like the body is scrolling behind the tab content rather than the tab content itself. I attempted placing the content inside a scrollPanel, but it requires a height which is not feasible in my case. Other CSS solutions I tried also did not work as expected.
This example is just a brief overview of the issue. The main problem is that the tab content does not scroll. Any help or solutions would be greatly appreciated.
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</h:head>
<h:body style="width: 1430px;padding:0">
<p:panelGrid style="height: 100px">
<p:outputLabel value="header info"/>
</p:panelGrid>
<p:tabView id="tabViewId">
<p:tab id="tab1Id" title="Tab1">
<h:form>
<!-- <p:scrollPanel mode="native" style="height: 500px;">-->
<p:panelGrid style="height: 1000px">
<p:outputLabel value="here i am"/>
</p:panelGrid>
<p:outputLabel value="scroll to me"/>
<!-- </p:scrollPanel>-->
</h:form>
</p:tab>
</p:tabView>
<p:sticky target="tabViewId"/>
</h:body>
</html>