Skip to content

Commit e96d5cb

Browse files
committed
Correção de erros ao subir a aplicação.
1 parent c1281a5 commit e96d5cb

22 files changed

Lines changed: 565 additions & 604 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<pageflow:Pageflow xmlns:pageflow="http://www.sybase.com/suade/pageflow" id="pf14352676129390" configfile="/SpringJavaCode/WebContent/WEB-INF/faces-config.xml"/>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false

‎.settings/org.eclipse.wst.common.project.facet.core.xml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99
<installed facet="jst.jaxrs" version="2.0"/>
1010
<installed facet="java" version="1.8"/>
1111
<installed facet="jst.jsf" version="2.2"/>
12-
<installed facet="jst.cdi" version="1.0"/>
13-
<installed facet="jboss.m2" version="1.0"/>
1412
<installed facet="jpt.jpa" version="2.0"/>
1513
</faceted-project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.wst.ws.service.policy.projectEnabled=false
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<faces-config version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
5+
http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
56

67
<application>
7-
<!-- INTERCIONALIZACAO -->
88

9+
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
10+
11+
<!-- INTERCIONALIZACAO -->
912
<resource-bundle>
1013
<base-name>com.solucaocriativa.resources.messages</base-name>
1114
<var>msgs</var>
@@ -14,7 +17,21 @@
1417
<default-locale>pt_BR</default-locale>
1518
<supported-locale>pt_BR</supported-locale>
1619
</locale-config>
17-
20+
21+
<action-listener>org.primefaces.application.DialogActionListener</action-listener>
22+
<navigation-handler>org.primefaces.application.DialogNavigationHandler</navigation-handler>
23+
<view-handler>org.primefaces.application.DialogViewHandler</view-handler>
24+
25+
<system-event-listener>
26+
</system-event-listener>
27+
28+
<system-event-listener>
29+
</system-event-listener>
30+
1831
</application>
1932

33+
<factory>
34+
<exception-handler-factory>com.solucaocriativa.config.CustomExceptionHandlerFactory</exception-handler-factory>
35+
</factory>
36+
2037
</faces-config>

‎WebContent/erroLogin.xhtml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
</script>
1818

1919
<h:form prependId="false">
20-
<p:dialog header="Erro" widgetVar="dlgErro" modal="true" height="100">
20+
21+
<ui:include src="#{request.contextPath}/resources/includes/login.xhtml" />
22+
23+
<p:dialog header="Erro" widgetVar="dlgErro" modal="true" height="200" width="300">
2124
<p:messages />
2225
</p:dialog>
2326

‎WebContent/index.xhtml‎

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,8 @@
1010

1111
<ui:define name="content">
1212

13-
<h:form prependId="false">
14-
15-
<p:messages id="messages" />
16-
17-
<p:panel header="Login">
18-
<p:panelGrid columns="2" styleClass="noBorder">
19-
<p:outputLabel for="j_username" value="Nome Usuário:" />
20-
<p:inputText id="j_username" />
21-
<p:outputLabel for="j_password" value="Senha:" />
22-
<p:password id="j_password" />
23-
<p:commandButton value="Enviar" icon="ui-icon-star"
24-
action="#{indexBean.authenticate}" ajax="false">
25-
</p:commandButton>
26-
</p:panelGrid>
27-
</p:panel>
28-
29-
</h:form>
30-
13+
<ui:include src="#{request.contextPath}/resources/includes/login.xhtml" />
14+
3115
</ui:define>
3216

3317
<ui:define name="footer">
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="ISO-8859-1" ?>
2+
<html xmlns="http://www.w3.org/1999/xhtml"
3+
xmlns:h="http://xmlns.jcp.org/jsf/html"
4+
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
5+
xmlns:f="http://xmlns.jcp.org/jsf/core"
6+
xmlns:p="http://primefaces.org/ui">
7+
8+
<h:form prependId="false">
9+
10+
<p:messages id="messages" />
11+
12+
<p:panel header="Login">
13+
<p:panelGrid columns="2" styleClass="noBorder">
14+
<p:outputLabel for="j_username" value="Nome Usuário:" />
15+
<p:inputText id="j_username" />
16+
<p:outputLabel for="j_password" value="Senha:" />
17+
<p:password id="j_password" />
18+
<p:commandButton value="Enviar" icon="ui-icon-star"
19+
action="#{indexBean.authenticate}" ajax="false">
20+
</p:commandButton>
21+
</p:panelGrid>
22+
</p:panel>
23+
24+
</h:form>
25+
26+
</html>

0 commit comments

Comments
 (0)