<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:icecore="http://www.icefaces.org/icefaces/core"
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ice:form id="form">
<ace:dataTable id="peopleList" value="#{peopleModel.people}"
var="person">
<!-- First column is name -->
<ace:column id="name" headerText="Name">
<h:outputText id="nameCell" value="#{person.name}" />
</ace:column>
<!-- second column is if I like him/her -->
<ace:column id="like" headerText="Like">
<!-- this header contains the input selection for the like filter -->
<f:facet name="header">
<h:outputText value="Like" />
<br />
<ice:selectOneMenu value="#{peopleModel.liked}"
partialSubmit="true">
<f:selectItem value="true" label="only liked" />
<f:selectItem value="false" label="only not liked" />
<f:selectItem value="" label="doesn't care" />
</ice:selectOneMenu>
</f:facet>
<!-- show if person is liked -->
<h:outputText id="likeCell" value="#{person.like}" />
</ace:column>
</ace:dataTable>
</ice:form>
</ui:composition>