Advertisement
Wolverine111

login

Feb 9th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.43 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.       xmlns:h="http://xmlns.jcp.org/jsf/html"
  5.       xmlns:p="http://primefaces.org/ui"
  6.       xmlns:pm="http://primefaces.org/mobile"
  7.       xmlns:f="http://xmlns.jcp.org/jsf/core"
  8.       xmlns:b="http://bootsfaces.net/ui">
  9.     <h:head>
  10.         <title>Logowanie</title>
  11.  
  12.     </h:head>
  13.     <h:body>
  14.        
  15.         <h:form id="login" onsubmit="document.getElementById('login').action='j_security_check';" prependId="false" >
  16.             <br/>
  17.             <br/>
  18.             <center><h2>Logowanie</h2>
  19.             <p:panel id="panel" header="Logowanie" style="margin-bottom:10px; width: 500px;">
  20.                 <p:messages id="messages"  />
  21.                 <h:panelGrid columns="2" cellpadding="7">
  22.  
  23.                     <h:outputLabel value="Użytkownik: " style="font-weight: bold; font-size: large"  />
  24.                     <p:inputText value="#{user.zalogowany}" type="text" id="j_username" binding="#{loginValue}" />
  25.                    
  26.                
  27.                     <h:outputLabel value="Hasło: " style="font-weight: bold; font-size: large" />
  28.                     <p:password id="j_password" />
  29.                      
  30.                     <f:facet name="footer">
  31.                     <center>
  32.                        
  33.                      <input type="submit" name="submit" value="Zaloguj" style=" color: #555; font-weight: bold; "  />
  34.                              
  35.                      <p:commandButton value="login" process="j_username j_password" immediate="true" update="@form" type="submit" >
  36.                          
  37.                      </p:commandButton>
  38.                        
  39.                      <!--  
  40.                      <p:commandButton value="Submit" id="Submit" update="@form" type="button" process="@form">
  41.                          <f:ajax execute="@form" render="@form" />
  42.                      </p:commandButton>-->
  43.                        
  44.                         <p:spacer width="10" />
  45.                         <p:commandLink value="#{msg.register}" action="register.xhtml?faces-redirect=true" immediate="true" />    
  46.                     </center>
  47.                     </f:facet>
  48.  
  49.                 </h:panelGrid>
  50.             </p:panel>
  51.             </center>
  52.     </h:form>
  53.  
  54.     </h:body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement