[jboss-cvs] jboss-seam/examples/blog/resources/WEB-INF ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Feb 14 08:54:40 EST 2007
User: sbryzak2
Date: 07/02/14 08:54:40
Modified: examples/blog/resources/WEB-INF components.xml pages.xml
Log:
use security api
Revision Changes Path
1.10 +32 -28 jboss-seam/examples/blog/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/blog/resources/WEB-INF/components.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- components.xml 17 Nov 2006 03:00:16 -0000 1.9
+++ components.xml 14 Feb 2007 13:54:40 -0000 1.10
@@ -1,12 +1,16 @@
-<!DOCTYPE components PUBLIC
- "-//JBoss/Seam Component Configuration DTD 1.1//EN"
- "http://jboss.com/products/seam/components-1.1.dtd">
+<?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">
-<components>
+ <core:init debug="true"/>
- <component name="org.jboss.seam.core.init">
- <property name="debug">true</property>
- </component>
+ <security:identity authenticate-method="#{authenticator.authenticate}"/>
<component name="org.jboss.seam.theme.themeSelector">
<property name="availableThemes">
1.8 +53 -55 jboss-seam/examples/blog/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/blog/resources/WEB-INF/pages.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- pages.xml 19 Dec 2006 21:07:34 -0000 1.7
+++ pages.xml 14 Feb 2007 13:54:40 -0000 1.8
@@ -2,7 +2,7 @@
"-//JBoss/Seam Pages Configuration DTD 1.1//EN"
"http://jboss.com/products/seam/pages-1.1.dtd">
-<pages>
+<pages login-view-id="/login.xhtml">
<page view-id="/search.xhtml">
@@ -20,9 +20,7 @@
</page>
- <page view-id="/post.xhtml">
-
- <action execute="#{loginAction.challenge}"/>
+ <page view-id="/post.xhtml" login-required="true">
<action execute="#{postAction.post}"
if="#{validation.succeeded}"/>
@@ -38,11 +36,11 @@
<page view-id="/login.xhtml">
- <action execute="#{loginAction.login}"
+ <action execute="#{identity.login}"
if="#{validation.succeeded}"/>
<navigation>
- <rule if="#{loginAction.loggedIn}">
+ <rule if="#{identity.loggedIn}">
<redirect view-id="/post.xhtml"/>
</rule>
</navigation>
More information about the jboss-cvs-commits
mailing list