[jboss-cvs] jboss-seam/examples/hibernate/resources/WEB-INF ...
Shane Bryzak
Shane_Bryzak at symantec.com
Thu Feb 15 03:40:29 EST 2007
User: sbryzak2
Date: 07/02/15 03:40:29
Modified: examples/hibernate/resources/WEB-INF components.xml
pages.xml
Log:
use security api
Revision Changes Path
1.6 +30 -24 jboss-seam/examples/hibernate/resources/WEB-INF/components.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: components.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/resources/WEB-INF/components.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- components.xml 17 Nov 2006 02:49:04 -0000 1.5
+++ components.xml 15 Feb 2007 08:40:29 -0000 1.6
@@ -1,8 +1,12 @@
-<!DOCTYPE components PUBLIC
- "-//JBoss/Seam Component Configuration DTD 1.1//EN"
- "http://jboss.com/products/seam/components-1.1.dtd">
-
-<components>
+<?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">
<component name="org.jboss.seam.core.init">
<property name="debug">true</property>
@@ -22,4 +26,6 @@
<component class="org.jboss.seam.core.Microcontainer"
installed="@microcontainer@"/>
+ <security:identity authenticate-method="#{authenticator.authenticate}"/>
+
</components>
\ No newline at end of file
1.3 +20 -9 jboss-seam/examples/hibernate/resources/WEB-INF/pages.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: pages.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate/resources/WEB-INF/pages.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- pages.xml 10 Nov 2006 19:07:55 -0000 1.2
+++ pages.xml 15 Feb 2007 08:40:29 -0000 1.3
@@ -2,8 +2,19 @@
"-//JBoss/Seam Pages Configuration DTD 1.1//EN"
"http://jboss.com/products/seam/pages-1.1.dtd">
-<pages>
- <page view-id="/main.xhtml" timeout="300000">Search hotels: #{hotelBooking.searchString}</page>
+<pages login-view-id="/home.xhtml">
+
+ <page view-id="/home.xhtml">
+
+ <navigation>
+ <rule if="#{identity.loggedIn}">
+ <redirect view-id="/main.xhtml"/>
+ </rule>
+ </navigation>
+
+ </page>
+
+ <page view-id="/main.xhtml" timeout="300000" login-required="true">Search hotels: #{hotelBooking.searchString}</page>
<page view-id="/hotel.xhtml" timeout="300000">View hotel: #{hotel.name}</page>
<page view-id="/book.xhtml" timeout="600000">Book hotel: #{hotel.name}</page>
<page view-id="/confirm.xhtml" timeout="600000">Confirm: #{booking.description}</page>
More information about the jboss-cvs-commits
mailing list