7
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2 <html xmlns="http://www.w3.org/1999/xhtml"
|
28
|
3 xmlns:h="http://java.sun.com/jsf/html"
|
|
4 xmlns:f="http://java.sun.com/jsf/core"
|
|
5 xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
6 xmlns:a4j="http://richfaces.org/a4j"
|
|
7 xmlns:rich="http://richfaces.org/rich" xmlns:p="http://java.sun.com/jsf/html">
|
7
|
8 <body>
|
|
9 <ui:composition>
|
|
10
|
|
11
|
|
12
|
|
13 <div style="z-index: 100;" class="rf-pp-shade">
|
|
14 <button class="rf-pp-btn" tabindex="-1" accesskey="" />
|
|
15 </div>
|
|
16
|
|
17 <h:panelGrid columns="1" styleClass="ismi-pp-cntr">
|
|
18
|
|
19 <div class="ismi-pp-hdr">
|
|
20 <div class="ismi-pp-hdr-cnt">Login</div>
|
|
21 </div>
|
|
22
|
|
23 <h:panelGrid columns="1" styleClass="ismi-pp-main-panel">
|
|
24 <h:panelGrid columns="2" style="text-align:left;">
|
28
|
25 <!-- Currently enter procs login but esc does not proc cancel -->
|
|
26 <script>
|
|
27 function handlerKeyPress(event) {
|
|
28 if (event.keyCode == 13) {
|
|
29 $('.login').click();
|
|
30 return false;
|
|
31 } else if (event.keyCode == 27) {
|
|
32 $('.cancel').click();
|
|
33 return false;
|
|
34 } else {
|
|
35 return true;
|
|
36 }
|
|
37 }
|
|
38 </script>
|
7
|
39 <h:outputText value="Email" />
|
28
|
40 <h:inputText value="#{Session.username}" size="40" onkeypress="return handlerKeyPress(event);" />
|
7
|
41 <h:outputText value="Password" />
|
28
|
42 <h:inputSecret value="#{Session.password}" size="40" onkeypress="return handlerKeyPress(event);" />
|
7
|
43 </h:panelGrid>
|
|
44
|
|
45 <h:panelGrid columns="2">
|
28
|
46 <h:commandButton value="Cancel" styleClass="cancel btn btn-default"
|
7
|
47 action="#{Session.actionLoginCancel}" />
|
28
|
48 <h:commandButton value="Login" styleClass="login btn btn-default"
|
7
|
49 actionListener="#{Session.listenerLogin}" />
|
|
50 </h:panelGrid>
|
|
51 </h:panelGrid>
|
|
52
|
|
53 </h:panelGrid>
|
|
54
|
|
55
|
|
56 </ui:composition>
|
|
57 </body>
|
|
58 </html>
|