Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='UTF-8' ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:p="http://primefaces.org/ui"
- xmlns:pm="http://primefaces.org/mobile"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- xmlns:b="http://bootsfaces.net/ui">
- <h:head>
- <title>Logowanie</title>
- </h:head>
- <h:body>
- <h:form id="login" onsubmit="document.getElementById('login').action='j_security_check';" prependId="false" >
- <br/>
- <br/>
- <center><h2>Logowanie</h2>
- <p:panel id="panel" header="Logowanie" style="margin-bottom:10px; width: 500px;">
- <p:messages id="messages" />
- <h:panelGrid columns="2" cellpadding="7">
- <h:outputLabel value="Użytkownik: " style="font-weight: bold; font-size: large" />
- <p:inputText value="#{user.zalogowany}" type="text" id="j_username" binding="#{loginValue}" />
- <h:outputLabel value="Hasło: " style="font-weight: bold; font-size: large" />
- <p:password id="j_password" />
- <f:facet name="footer">
- <center>
- <input type="submit" name="submit" value="Zaloguj" style=" color: #555; font-weight: bold; " />
- <p:commandButton value="login" process="j_username j_password" immediate="true" update="@form" type="submit" >
- </p:commandButton>
- <!--
- <p:commandButton value="Submit" id="Submit" update="@form" type="button" process="@form">
- <f:ajax execute="@form" render="@form" />
- </p:commandButton>-->
- <p:spacer width="10" />
- <p:commandLink value="#{msg.register}" action="register.xhtml?faces-redirect=true" immediate="true" />
- </center>
- </f:facet>
- </h:panelGrid>
- </p:panel>
- </center>
- </h:form>
- </h:body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement