Commit e2bff0d796e8eb93b23eaccb683b488fd0b47a5f
1 parent
bcae1247
Exists in
master
Atualização do Primefaces
Showing
6 changed files
with
28 additions
and
48 deletions
Show diff stats
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/webapp/bookmark_edit.xhtml
1 | -<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" | |
2 | - xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" | |
3 | - xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml"> | |
4 | - | |
1 | +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" | |
2 | + xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml"> | |
5 | 3 | <ui:define name="body"> |
6 | 4 | <h:form prependId="false"> |
7 | 5 | <p:toolbar> |
8 | 6 | <p:toolbarGroup align="left"> |
9 | - <p:commandButton value="#{messages['button.save']}" action="#{bookmarkEditMB.insert}" | |
10 | - rendered="#{!bookmarkEditMB.updateMode}" ajax="false" /> | |
11 | - <p:commandButton value="#{messages['button.save']}" action="#{bookmarkEditMB.update}" | |
12 | - rendered="#{bookmarkEditMB.updateMode}" ajax="false" /> | |
13 | - <p:commandButton value="#{messages['button.delete']}" onclick="confirmation.show()" | |
14 | - rendered="#{bookmarkEditMB.updateMode}" type="button" immediate="true" ajax="false" /> | |
15 | - <p:confirmDialog message="#{messages['label.confirm.delete']}" showEffect="bounce" hideEffect="explode" | |
16 | - header="#{messages['label.dialog.delete']}" severity="alert" widgetVar="confirmation"> | |
17 | - <h:commandButton value="#{messages['button.dialog.yes']}" action="#{bookmarkEditMB.delete}" immediate="true" | |
18 | - ajax="false" /> | |
19 | - <h:commandButton value="#{messages['button.dialog.no']}" onclick="confirmation.hide()" type="button" /> | |
7 | + <p:commandButton value="#{messages['button.save']}" action="#{bookmarkEditMB.insert}" rendered="#{!bookmarkEditMB.updateMode}" ajax="false" /> | |
8 | + <p:commandButton value="#{messages['button.save']}" action="#{bookmarkEditMB.update}" rendered="#{bookmarkEditMB.updateMode}" ajax="false" /> | |
9 | + <p:commandButton value="#{messages['button.delete']}" rendered="#{bookmarkEditMB.updateMode}" onclick="PF('confirmation').show()" type="button" | |
10 | + immediate="true" ajax="false" /> | |
11 | + <p:confirmDialog message="#{messages['label.confirm.delete']}" header="#{messages['label.dialog.delete']}" showEffect="bounce" | |
12 | + hideEffect="explode" severity="alert" widgetVar="confirmation"> | |
13 | + <p:commandButton value="#{messages['button.dialog.yes']}" action="#{bookmarkEditMB.delete}" immediate="true" ajax="false" /> | |
14 | + <p:commandButton value="#{messages['button.dialog.no']}" onclick="PF('confirmation').hide();" type="button" /> | |
20 | 15 | </p:confirmDialog> |
21 | 16 | </p:toolbarGroup> |
22 | 17 | </p:toolbar> |
... | ... | @@ -30,8 +25,7 @@ |
30 | 25 | <p:message for="id" /> |
31 | 26 | |
32 | 27 | <h:outputLabel value="#{messages['bookmark.label.description']}: " for="description" styleClass="text-input" /> |
33 | - <h:inputText id="description" value="#{bookmarkEditMB.bean.description}" | |
34 | - title="#{messages['bookmark.alt.description']}" /> | |
28 | + <h:inputText id="description" value="#{bookmarkEditMB.bean.description}" title="#{messages['bookmark.alt.description']}" /> | |
35 | 29 | <p:message for="description" /> |
36 | 30 | |
37 | 31 | <h:outputLabel value="#{messages['bookmark.label.link']}: " for="link" styleClass="text-input" /> | ... | ... |
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/webapp/bookmark_list.xhtml
1 | -<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" | |
2 | - xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" | |
3 | - xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml"> | |
1 | +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" | |
2 | + xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml"> | |
4 | 3 | |
5 | 4 | <ui:define name="body"> |
6 | 5 | <h:form> |
... | ... | @@ -9,15 +8,14 @@ |
9 | 8 | <p:commandButton title="#{messages['button.new']}" icon="ui-icon-document" action="#{bookmarkListMB.getNextView}" |
10 | 9 | actionListener="#{bookmarkListMB.clear}" ajax="false" /> |
11 | 10 | |
12 | - <p:commandButton title="#{messages['button.delete']}" icon="ui-icon-trash" onclick="confirmation.show()" | |
13 | - type="button" immediate="true" ajax="false" /> | |
11 | + <p:commandButton title="#{messages['button.delete']}" icon="ui-icon-trash" onclick="PF('confirmation').show();" type="button" immediate="true" | |
12 | + ajax="false" /> | |
14 | 13 | |
15 | 14 | <p:confirmDialog message="#{messages['label.confirm.delete']}" showEffect="bounce" hideEffect="explode" |
16 | 15 | header="#{messages['label.dialog.alert']}!" severity="alert" widgetVar="confirmation"> |
17 | 16 | |
18 | - <h:commandButton value="#{messages['button.dialog.yes']}" action="#{bookmarkListMB.deleteSelection}" | |
19 | - actionListener="#{bookmarkListMB.clear}" /> | |
20 | - <h:commandButton value="#{messages['button.dialog.no']}" onclick="confirmation.hide()" type="button" /> | |
17 | + <h:commandButton value="#{messages['button.dialog.yes']}" action="#{bookmarkListMB.deleteSelection}" actionListener="#{bookmarkListMB.clear}" /> | |
18 | + <h:commandButton value="#{messages['button.dialog.no']}" onclick="PF('confirmation').hide();" type="button" /> | |
21 | 19 | </p:confirmDialog> |
22 | 20 | </p:toolbarGroup> |
23 | 21 | </p:toolbar> | ... | ... |
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
1 | -<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" | |
2 | - xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" | |
3 | - xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml"> | |
1 | +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" | |
2 | + xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" template="/template/main.xhtml"> | |
4 | 3 | |
5 | 4 | <ui:define name="body"> |
6 | 5 | <p:panel> | ... | ... |
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/webapp/menu.xhtml
1 | -<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" | |
2 | - xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" | |
3 | - xmlns:ui="http://java.sun.com/jsf/facelets"> | |
1 | +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" | |
2 | + xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> | |
4 | 3 | |
5 | 4 | <h:form> |
6 | 5 | <p:menubar> |
... | ... | @@ -9,8 +8,7 @@ |
9 | 8 | <p:menuitem value="#{messages['menu.menuitem.list']}" url="/bookmark_list.jsf" /> |
10 | 9 | </p:submenu> |
11 | 10 | |
12 | - <p:menuitem value="#{messages['menu.menuitem.quit']}" url="http://www.frameworkdemoiselle.gov.br/" | |
13 | - action="#{securityContext.logout}" /> | |
11 | + <p:menuitem value="#{messages['menu.menuitem.quit']}" url="http://www.frameworkdemoiselle.gov.br/" action="#{securityContext.logout}" /> | |
14 | 12 | </p:menubar> |
15 | 13 | </h:form> |
16 | 14 | ... | ... |
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/webapp/template/main.xhtml
1 | -<html xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" | |
2 | - xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> | |
1 | +<html xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" | |
2 | + xmlns:ui="http://java.sun.com/jsf/facelets"> | |
3 | 3 | |
4 | 4 | <f:view contentType="text/html" locale="#{locales.currentLocale}" /> |
5 | 5 | |
... | ... | @@ -11,19 +11,17 @@ |
11 | 11 | <h:body style="background-color:#f1f1f1"> |
12 | 12 | <table style="width: 100%"> |
13 | 13 | <tr> |
14 | - <td height="70" align="left"> | |
15 | - <a href="index.jsf"><img src="images/logo.png" border="0" /></a> | |
14 | + <td height="70" align="left"><a href="index.jsf"><img src="images/logo.png" border="0" /></a> | |
16 | 15 | <div style="float: right;"> |
17 | 16 | <h:form id="language_form" prependId="true"> |
18 | 17 | <h:commandLink action="#{locales.setCurrentLocale('pt')}"> |
19 | - <span class="ui-icon-locale-pt" ></span> | |
18 | + <span class="ui-icon-locale-pt"></span> | |
20 | 19 | </h:commandLink> |
21 | 20 | <h:commandLink action="#{locales.setCurrentLocale('en')}"> |
22 | - <span class="ui-icon-locale-en" ></span> | |
21 | + <span class="ui-icon-locale-en"></span> | |
23 | 22 | </h:commandLink> |
24 | 23 | </h:form> |
25 | - </div> | |
26 | - </td> | |
24 | + </div></td> | |
27 | 25 | </tr> |
28 | 26 | <tr> |
29 | 27 | <td height="20"><ui:include src="/menu.xhtml" /></td> |
... | ... | @@ -46,6 +44,5 @@ |
46 | 44 | <h:outputText value="" /> |
47 | 45 | </f:facet> |
48 | 46 | </p:ajaxStatus> |
49 | - <link type="text/css" rel="stylesheet" href="css/aristo/skin.css" /> | |
50 | 47 | </h:body> |
51 | 48 | </html> |
52 | 49 | \ No newline at end of file | ... | ... |
parent/bom/pom.xml
... | ... | @@ -198,11 +198,6 @@ |
198 | 198 | <artifactId>jsf-impl</artifactId> |
199 | 199 | <version>${jsf.version}</version> |
200 | 200 | </dependency> |
201 | - <dependency> | |
202 | - <groupId>org.primefaces</groupId> | |
203 | - <artifactId>primefaces</artifactId> | |
204 | - <version>${primefaces.version}</version> | |
205 | - </dependency> | |
206 | 201 | |
207 | 202 | <!-- jsr-316 api --> |
208 | 203 | <dependency> |
... | ... | @@ -435,7 +430,6 @@ |
435 | 430 | <maven.surefire.plugin.version>2.16</maven.surefire.plugin.version> |
436 | 431 | |
437 | 432 | <powermock.version>1.4.6</powermock.version> |
438 | - <primefaces.version>3.5</primefaces.version> | |
439 | 433 | <slf4j.version>1.6.1</slf4j.version> |
440 | 434 | <weld.version>1.1.8.Final</weld.version> |
441 | 435 | <commons.configuration.version>1.9</commons.configuration.version> | ... | ... |