1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h2>Liste des communes</h2>
<f:view>
<f:subview id="entete">
<jsp:include page="entete.jsp"></jsp:include>
</f:subview>
<h:form id="listDesCommunes2">
<rich:datascroller for="maListe"/>
<rich:spacer height="30" />
<rich:dataTable id="maListe" width="483" rows="10" value="#{communeBackingBean.communeList}" var="commune">
<h:column>
<f:facet name="header">
<h:outputText styleClass="headerText" value="Département" />
</f:facet>
<h:outputText value="#{commune.pk.p_ci_dep}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText styleClass="headerText" value="Commune Insee" />
</f:facet>
<h:outputText value="#{commune.pk.p_ci_com}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText styleClass="headerText" value="Libellé" />
</f:facet>
<h:outputText value="#{commune.p_ci_lib}" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Modifier"/>
</f:facet>
<h:commandLink id="Edit" action="editCommune" actionListener="#{communeBackingBean.loadCommune}">
<h:outputText value="Edit" />
<f:param id="editId" name="id" value="#{commune.pk}" />
</h:commandLink>
</h:column>
</rich:dataTable>
</h:form>
</f:view>
</body>
</html> |
Partager