PrimeFaces 6.x has flexible design updates, including Repressive Mesh .
The grid is not a JSF component, it is a simple div with ui-grid classes.
An example of placing three columns:
<div class="ui-grid"> <div class="ui-grid-col-4">Col1</div> <div class="ui-grid-col-4">Col2</div> <div class="ui-grid-col-4">Col2</div> </div>
In real cases, scripts that have only a grid will not fill in the requirements, so you should usually use some frameworks such as bootstrap or foundation .
Both frameworks provide CSS / Javascript rules that can be easily applied to JSF components, for example, if you have a button:
<h:commandButton styleClass="btn" value="Button"> </h:commandButton>
btn is a CSS class for bootstrapping.
You may encounter some components that will not accept styles such as the Primefaces table, in these cases you must write your own multimedia CSS / Javascript queries in order to maintain responsiveness.
More details
Hatem alimam
source share