public final class JsfJpaUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<javax.faces.model.SelectItem> |
asSelectItems(List<? extends Persistable> persistables,
String labelProperty)
Creates items of type
SelectItem from the supplied List of
persistables, using reflection. |
public static List<javax.faces.model.SelectItem> asSelectItems(List<? extends Persistable> persistables, String labelProperty)
SelectItem from the supplied List of
persistables, using reflection.
SelectItem is the Persistable itself
and the label is fetched from the Persistable, using the
supplied labelProperty.persistables - The Persistables to convert to
SelectItems.labelProperty - The name of the Persistable's property
to be used as the label of the SelectItem.
SelectItems.SelectItem.
Copyright © 2008–2018. All rights reserved.