1

I need to set the panelGrid fixed while scrolling the page.

e.g. the bottom bar on the top should be fixed, while scrolling the datatable.

    <h:panelGrid id="buttonGrid">
....
</h:panelGrid>


<p:dataTable id="datatable" .....>
....
</p:dataTable>

How can I solve this?

Grant Birchmeier
  • 17,809
  • 11
  • 63
  • 98
Johnny2012
  • 1,512
  • 8
  • 31
  • 46

1 Answers1

2

This works:

<h:panelGrid id="buttonGrid" styleClass="fixed-class">
            <h:outputText value="text text"/>
            <h:outputText value="text text"/>
            <h:outputText value="text text"/>
            <h:outputText value="text text"/>
            <h:outputText value="text text"/>
</h:panelGrid>

css:

.fixed-class{
    position: fixed;
}
Kuba
  • 2,069
  • 23
  • 30