[jboss-cvs] jboss-seam/examples/jpa/resources ...
Shane Bryzak
sbryzak at redhat.com
Sun Feb 18 23:07:23 EST 2007
User: sbryzak2
Date: 07/02/18 23:07:23
Modified: examples/jpa/resources components.xml pages.xml
Log:
use security api
Revision Changes Path
1.6 +26 -22 jboss-seam/examples/jpa/resources/components.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: components.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/resources/components.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- components.xml 27 Jan 2007 19:22:08 -0000 1.5
+++ components.xml 19 Feb 2007 04:07:23 -0000 1.6
@@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
+ xmlns:security="http://jboss.com/products/seam/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
+ http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.1.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">
<core:init debug="true"/>
@@ -19,4 +21,6 @@
auto-create="true"
entity-manager-factory="#{bookingDatabase}"/>
+ <security:identity authenticate-method="#{authenticator.authenticate}"/>
+
</components>
1.4 +92 -100 jboss-seam/examples/jpa/resources/pages.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pages.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/resources/pages.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- pages.xml 9 Jan 2007 20:53:44 -0000 1.3
+++ pages.xml 19 Feb 2007 04:07:23 -0000 1.4
@@ -2,7 +2,7 @@
"-//JBoss/Seam Pages Configuration DTD 1.1//EN"
"http://jboss.com/products/seam/pages-1.1.dtd">
-<pages no-conversation-view-id="/main.xhtml">
+<pages no-conversation-view-id="/main.xhtml" login-view-id="/home.xhtml">
<page view-id="/register.xhtml">
@@ -20,7 +20,7 @@
<page view-id="/home.xhtml">
<navigation>
- <rule if="#{login.loggedIn}">
+ <rule if="#{identity.loggedIn}">
<redirect view-id="/main.xhtml"/>
</rule>
</navigation>
@@ -37,15 +37,7 @@
</page>
- <page view-id="/main.xhtml">
-
- <action execute="#{login.validateLogin}"/>
-
- <navigation from-action="#{login.validateLogin}">
- <rule if="#{not login.loggedIn}">
- <redirect view-id="/home.xhtml"/>
- </rule>
- </navigation>
+ <page view-id="/main.xhtml" login-required="true">
<navigation from-action="#{hotelBooking.selectHotel(hot)}">
<redirect view-id="/hotel.xhtml"/>
@@ -88,7 +80,7 @@
<page view-id="*">
- <navigation from-action="#{login.logout}">
+ <navigation from-action="#{identity.logout}">
<redirect view-id="/home.xhtml"/>
</navigation>
More information about the jboss-cvs-commits
mailing list