login.xhtml

Locked
MarcosSosnovski
Posts: 3
Joined: 29 Jul 2014, 15:38

15 May 2016, 01:30

I found it difficult to enjoy the spark layout using spring security , I can not log in !

Code: Select all


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

    <h:head>
        <f:facet name="first">
            <meta http-equiv="X-UA-Compatible" content="IE=edge" />
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
            <meta name="apple-mobile-web-app-capable" content="yes" />
        </f:facet>
        <title>web</title>
        <h:outputScript name="js/layout.js" library="spark-layout" />
        
        <h:outputText value="<!--[if gte IE 9]>" escape="false" />
            <style type="text/css">
                /* styles for IE 9 */
            </style>
        <h:outputText value="<![endif]-->" escape="false" />

        <ui:insert name="head" />
    </h:head>

    <h:body>
        <div id="layout-portlets-cover">
            <div class="other-pages-box Container40 Responsive50 MarAuto Fnone TexAlCenter ShadowGray MarTop10"
                 style="margin-top:5%; background-image:url(#{resource['spark-layout:images/loginpageillust.svg']}); background-repeat:no-repeat; background-position:center; background-size:cover;">
                <div class="Container90 Fnone MarAuto TexAlCenter">
                    <div class="EmptyBox50"></div>
                    <h:graphicImage height="100" name="images/logoext.png" library="spark-layout" styleClass="MarAuto MarTop20 MarBot10"/>
                    <font color="red">
		     			<h:outputLabel value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>
                	</font>
        			<h:form id="loginForm" action="#{request.contextPath}/login" method="post">
                    <div class="EmptyBox20"></div>
                    <p:inputText id="username" type="text" placeholder="Usuário/e-mail" styleClass="Container80 Fnone MarAuto Fs18"/>
                    <div class="EmptyBox10"></div>
                    <p:inputText type="password" id="password" placeholder="Password" styleClass="Container80 Fnone MarAuto Fs18" feedback="false"/>
                    <div class="EmptyBox20"></div>
                    <div class="Container85 Fnone MarAuto softgray">
                        <div class="EmptyBox5"></div>
                        <p:selectBooleanCheckbox value="accept" itemLabel="Aceito os Termos e Políticas deste Portal!"/>
                    </div>
                    <div class="EmptyBox30"></div>
                    <p:commandButton ajax="false" value="Log In para Sistema" styleClass="Fs16" type="submit"></p:commandButton>
                    <h3>	
						<input type="submit" value="Entrar" />
						<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
					</h3>
                    <div class="EmptyBox10"></div>
                    <div class="Seperator"></div>
                    <div class="EmptyBox10"></div>
                    <p:button  value="Esqueceu a senha ?" styleClass="Fs16 RedButton" href="/dashboard/"></p:button>
                    <p:button  value="Entrar em contato com Admin ?" styleClass="Fs16 OrangeButton" href="/dashboard/"></p:button>
                    
                    <div class="EmptyBox50"></div>
        			</h:form>
                </div>
            </div>
        </div>
        <h:outputStylesheet name="css/core-layout.css" library="spark-layout" />
        <h:outputStylesheet name="css/font-awesome.css" library="spark-layout" />
        <h:outputStylesheet name="css/animate.css" library="spark-layout" />
        <h:outputStylesheet name="css/spark-layout.css" library="spark-layout" />
    </h:body>

</html>

Last edited by MarcosSosnovski on 16 May 2016, 14:28, edited 1 time in total.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

15 May 2016, 20:17

I think this is not a layout or theme issue. Please use core forum; http://forum.primefaces.org/viewforum.php?f=3
Does this case work without Spark layout?

MarcosSosnovski
Posts: 3
Joined: 29 Jul 2014, 15:38

16 May 2016, 14:33

Thank you! I opened this post in General!

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

16 May 2016, 15:44

Thank you ;)

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests