<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h:form>
<rich:dataTable onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
id="table" rows="7" value="#{eBPays.paysDataModel}" var="P" style="width : 248px; height : 163px;">
<f:facet name="header">
<h:outputText value="Liste de Recherche"/>
</f:facet>
<rich:column>
<f:facet name="header"><h:outputText value="Code"/></f:facet>
<h:outputText value="#{P.code}"/>
</rich:column>
<rich:column>
<f:facet name="header"><h:outputText value="Libelle"/></f:facet>
<h:outputText value="#{P.libelle}"/>
</rich:column>
<rich:column>
<f:facet name="header">
Actions
</f:facet>
<a4j:commandLink ajaxSingle="true" id="editlink"
oncomplete="#{rich:component('editPanel')}.show()">
<h:graphicImage value="/image/edit.gif" style="border:0"/>
<f:setPropertyActionListener value="#{P}"
target="#{eBPays.getSelection}" />
</a4j:commandLink>
<rich:toolTip for="editlink" value="Edit"/>
</rich:column>
</rich:dataTable>
<rich:datascroller for="table" maxPages="3" style="height : 20px; width : 248px;"></rich:datascroller>
<rich:modalPanel id="editPanel" autosized="true" width="450">
<f:facet name="header">
<h:outputText value="Editer Pays" />
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/image/close.png"
id="hidelink" styleClass="hidelink"/>
<rich:componentControl for="editPanel" attachTo="hidelink"
operation="hide" event="onclick" />
</h:panelGroup>
</f:facet>
<h:form>
<rich:messages style="color:red;"></rich:messages>
<h:panelGrid columns="1">
<a4j:outputPanel ajaxRendered="true">
<h:panelGrid columns="2">
<h:outputText value="Code"/>
<h:inputText id="PanelCode" value="#{P.code}"/>
<h:outputText value="Libelle" />
<h:inputText id="PanelLibelle" value="#{P.libelle}" />
</h:panelGrid>
</a4j:outputPanel>
<a4j:commandButton value="Store"
oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPanel')}.hide();" />
</h:panelGrid>
</h:form>
</rich:modalPanel>
<a4j:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()"/>
</h:form>
</f:view>
</body>
</html>
Partager