[jboss-cvs] jboss-seam/examples/dvdstore/web/WEB-INF/incl ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Feb 14 22:11:30 EST 2007
User: sbryzak2
Date: 07/02/14 22:11:30
Modified: examples/dvdstore/web/WEB-INF/incl login.xhtml
Log:
use security api
Revision Changes Path
1.8 +7 -7 jboss-seam/examples/dvdstore/web/WEB-INF/incl/login.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: login.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/web/WEB-INF/incl/login.xhtml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- login.xhtml 14 Dec 2006 03:12:43 -0000 1.7
+++ login.xhtml 15 Feb 2007 03:11:30 -0000 1.8
@@ -5,7 +5,7 @@
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jstl/core">
- <c:when test="#{currentUser==null}">
+ <c:when test="#{not identity.loggedIn}">
<div class="menu">
<h:form>
<dl>
@@ -13,12 +13,12 @@
<dd class="menuForm">
<dl>
<dt><h:outputText value="#{messages.loginUser}" /></dt>
- <dd><h:inputText value="#{login.userName}" size="16" /></dd>
+ <dd><h:inputText value="#{identity.username}" size="16" /></dd>
<dt><h:outputText value="#{messages.loginPass}" /></dt>
- <dd><h:inputSecret value="#{login.password}" size="16"/></dd>
+ <dd><h:inputSecret value="#{identity.password}" size="16"/></dd>
<dd>
- <h:commandButton action="#{login.login}" value="#{messages.loginPrompt}"
+ <h:commandButton action="#{identity.login}" value="#{messages.loginPrompt}"
styleClass="formButton" style="width: 166px;"/>
</dd>
@@ -43,7 +43,7 @@
<dl>
<dd>Thank you for choosing the DVD Store</dd>
<dd>
- <h:commandButton action="#{login.logout}" value="Logout"
+ <h:commandButton action="#{identity.logout}" value="Logout"
styleClass="formButton" style="width: 166px;"/>
</dd>
</dl>
More information about the jboss-cvs-commits
mailing list