arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
FluidGrid
FluidGrid allows to set up a nice tight grid with items that have variable heights and widths. FluidGrid is a responsive grid. That means, the grid will reflow as the window size changes. Items can have any content: text, images, links, input fields, etc. They can be defined in a static or in a dynamic way as in data iteration components.

This example demonstrates a simple usage with dynamic items. Dynamic items can be put in a collection or list of FluidGridItem instances. A FluidGridItem instance contains a data object (of any data types) and an optional type property to match the type attribute in pe:fluidGridItem (see the example with dynamic form). Dynamic items can be accessed in XHTML via the value attribute and exposed via the var attribute. Click on the button below and resize the browser to test the fluid grid!

Note: The attribute hasImages is set to true to fix overlapping of items which are caused by unloaded images. If this attribute is set to true, the grid layout will be triggered after all images have been loaded and items have their proper sizes. The example also demonstrates the event layoutComplete which is fired after a layout of fluid grid and all positioning transitions have been completed.
Source

<p:growl id="growl" showDetail="true" showSummary="true">
        <p:autoUpdate />
    </p:growl>
    
<pe:fluidGrid value="#{fluidGridDynamicController.images}" var="image"
              fitWidth="true" hasImages="true">
    <p:ajax event="layoutComplete" update="@none"
            listener="#{fluidGridDynamicController.fireLayoutComplete}"/>
    
    <pe:fluidGridItem>
        <h:graphicImage library="images" name="fluidgrid/#{image.name}"/>
    </pe:fluidGridItem>
</pe:fluidGrid>
            
<h:outputStylesheet id="fluidGridCSS">    
    img {
        margin-top: -4px;
    }
</h:outputStylesheet>
            
Components and more
Documentation
Attributes (move mouse over the names to see data types)
Name Description
No attributes available for this component.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 15.0.13,PrimeFaces Extensions: 15.0.14-SNAPSHOT,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: Apache Tomcat (TomEE)/9.0.82 (8.0.16),Build time: 2026-02-23 00:32