DataList - Basic

DataList displays data in a list layout.

Documentation
Basic
  1. Honda, 1994
  2. Audi, 2006
  3. Jaguar, 1970
  4. Audi, 1988
  5. Audi, 1984
  6. Mercedes, 1983
  7. Honda, 1996
  8. Volkswagen, 1993
  9. Fiat, 1998
  10. Volkswagen, 1995
Definition
Brand: Volvo, Year: 1963
Brand: Volvo, Year: 1980
Brand: Audi, Year: 1973
Brand: Mercedes, Year: 1964
Brand: Fiat, Year: 1988
<style type="text/css">
    .ui-datalist {
        width:300px;
        margin-bottom: 20px;
    }

    .ui-datalist-item {
        padding:3px;
    }
</style>


<h:form id="form">
    <p:dataList value="#{dataListView.cars1}" var="car" type="ordered">
        <f:facet name="header">
            Basic
        </f:facet>
        #{car.brand}, #{car.year}
    </p:dataList>

    <p:dataList value="#{dataListView.cars2}" var="car" type="definition">
        <f:facet name="header">
            Definition
        </f:facet>
        Brand: #{car.brand}, Year: #{car.year}
        <f:facet name="description">
            <p:graphicImage name="demo/images/car/#{car.brand}.gif"/> 
        </f:facet>
    </p:dataList>
</h:form>

FREE THEMES

Built-in component themes created by the PrimeFaces Theme Designer.

nova-light Nova-Light
nova-dark Nova-Dark
nova-colored Nova-Colored
luna-blue Luna-Blue
luna-amber Luna-Amber
luna-green Luna-Green
luna-pink Luna-Pink
omega Omega

PREMIUM TEMPLATES

Create awesome applications in no time using the premium templates and impress your users.