Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>
- <!-- secound column is if I hate him -->
- <ace:column id="hate" headerText="Hate">
- <!-- this header contains the input selection for the hate filter -->
- <f:facet name="header">
- <h:outputText value="Hate" />
- <br />
- <ice:selectOneMenu value="#{peopleModel.onlyHated}"
- partialSubmit="true">
- <f:selectItem value="true" label="only hated" />
- <f:selectItem value="false" label="only not hated" />
- <f:selectItem value="" label="doesn't care" />
- </ice:selectOneMenu>
- </f:facet>
- <!-- show if person is hated -->
- <h:outputText id="hateCell" value="#{person.hateHim}" />
- </ace:column>
- </ace:dataTable>
- </ice:form>
- </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement