If you're looking for a solution to handle layout and content height dynamically, PrimeFaces's layout/layoutUnit components may be just what you need. These components utilize javascript to calculate and set content heights, automatically adjusting when the page is resized.
For a demonstration of how these components work, check out their showcase:
To enable overflow-y functionality, it may be necessary to set a fixed height. One approach to achieving dynamic height adjustments is through calculated values or by utilizing CSS positioning properties like left, right, top, and bottom.
Implementing these techniques can help create visually appealing layouts with flexible and responsive designs. Best regards!