This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
changepassword.xhtml
51 lines (47 loc) · 2.53 KB
/
changepassword.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.org/schema/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
template="../WEB-INF/template/template.xhtml">
<ui:define name="page_title">#{messages['jsf.ChangePassword']}</ui:define>
<ui:define name="center_content">
<h1>#{messages['jsf.ChangePassword']}</h1>
<h:form id="passwordChangeForm">
<s:token allowMultiplePosts="true" />
<rich:panel>
<f:facet name="header">#{messages['jsf.ChangePassword']}</f:facet>
<s:decorate id="passwordOldField" template="../WEB-INF/layout/edit.xhtml" rendered="#{not passwordChange.firstPasswordChange}" enclose="true">
<ui:define name="label">#{messages['jsf.OldPassword']}</ui:define>
<h:inputSecret id="passwordOld" redisplay="true" required="true"
value="#{passwordChange.passwordOld}">
<a4j:ajax event="blur" render="passwordOldField"/>
</h:inputSecret>
</s:decorate>
<s:decorate id="passwordNewField" template="../WEB-INF/layout/edit.xhtml" enclose="true">
<ui:define name="label">#{messages['jsf.NewPassword']}</ui:define>
<h:inputSecret id="passwordNew" redisplay="true" required="true"
value="#{passwordChange.passwordNew}">
<a4j:ajax event="blur" render="passwordNewField"/>
</h:inputSecret>
</s:decorate>
<s:decorate id="passwordConfirmField" template="../WEB-INF/layout/edit.xhtml" enclose="true">
<ui:define name="label">#{messages['jsf.ConfirmPassword']}</ui:define>
<h:inputSecret id="passwordConfirm" redisplay="true" required="true"
value="#{passwordChange.passwordConfirm}">
<a4j:ajax event="blur" render="passwordConfirmField"/>
</h:inputSecret>
</s:decorate>
<div style="clear:both"/>
<div class="actionButtons">
<h:commandButton value="#{messages['jsf.ChangePassword']}" action="#{passwordChange.change}"/>
<s:button view="/profile/view.xhtml" value="#{messages['jsf.Cancel']}" propagation="end"/>
</div>
</rich:panel>
</h:form>
</ui:define>
</ui:composition>