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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<head>
<title>Authentification</title>
<style type='text/css'>
.containerB{
background-image:url(./image/cloud.jpg);
background-repeat:no-repeat;
background-size: 100%;
}
</style>
</head>
<body class="containerB">
<div align="center">
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><rich:spacer width="1" height="50" />
<rich:panel style="width:320px;">
<f:facet name="header">
<h:outputText value="#{loginController.text}"></h:outputText>
</f:facet><a4j:form reRender="_panel_test2" ajaxSubmit="true">
<h:panelGrid columns="2">
<h:outputText value="Login"/>
<h:inputText value="#{loginController.userName}"/>
<h:outputText value="Mot de passe:"/>
<h:inputSecret value="#{loginController.password}"></h:inputSecret>
<h:outputText value="Role" />
<rich:comboBox value="#{loginController.role}" defaultLabel="select a role...">
<f:selectItems value="#{loginController.roleItems}"/>
</rich:comboBox>
<a4j:commandButton value="Login" action="#{loginController.envoyer}" oncomplete="javascript:Richfaces.showModalPanel('_panel_test2',{left:'auto',top:'auto'})">
</a4j:commandButton>
</h:panelGrid>
</a4j:form>
</rich:panel>
<br /><br /><br /><br /><rich:modalPanel id="_panel_test2" height="100" width="200">
<f:facet name="header">Authentification</f:facet>
<f:facet name="controls">
<h:graphicImage value="./image/close.png" style="cursor:pointer"
onclick="Richfaces.hideModalPanel('_panel_test2')" />
</f:facet>
<rich:panel style="border:0;height:40px">
<h:panelGrid id="login" border="0" columns="1">
<h:outputText value="#{loginController.y} "></h:outputText>
<h:form>
<h:outputText value="#{loginController.message} "></h:outputText>
</h:form>
</h:panelGrid> </rich:panel>
</rich:modalPanel>
</div>
</body>
</html> |
Partager