Files
alfresco-community-repo/source/web/WEB-INF/faces-config-zoo.xml
2005-12-08 07:13:07 +00:00

125 lines
4.5 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<!-- ==================== MANAGED BEANS ==================== -->
<managed-bean>
<description>
The bean that backs up the jsf-test webapp User List screen
</description>
<managed-bean-name>UserListBean</managed-bean-name>
<managed-bean-class>jsftest.UserListBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<description>
Bean for component testing
</description>
<managed-bean-name>TestList</managed-bean-name>
<managed-bean-class>jsftest.TestList</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<description>
The bean that acts as the Data Dictionary Service
</description>
<managed-bean-name>MockDDService</managed-bean-name>
<managed-bean-class>jsftest.repository.DataDictionary</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<description>
A bean that components in the zoo can use
</description>
<managed-bean-name>DummyBean</managed-bean-name>
<managed-bean-class>jsftest.DummyBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<!-- ==================== NAVIGATION ==================== -->
<!-- Zoo page links -->
<navigation-rule>
<from-view-id>/jsp/zoo/zoo.jsp</from-view-id>
<navigation-case>
<from-outcome>showUserlist</from-outcome>
<to-view-id>/jsp/test/userlist.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>showRichListZoo</from-outcome>
<to-view-id>/jsp/zoo/components.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>showPropertyZoo</from-outcome>
<to-view-id>/jsp/zoo/properties.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>showAutoPropertyZoo</from-outcome>
<to-view-id>/jsp/zoo/properties-auto.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>showImagePickerZoo</from-outcome>
<to-view-id>/jsp/zoo/image-picker.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>showDynaDescZoo</from-outcome>
<to-view-id>/jsp/zoo/dynamic-description.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>showWebClient</from-outcome>
<to-view-id>/jsp/browse/browse.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<!-- rule to get back to the zoo page from anywhere -->
<navigation-rule>
<from-view-id>/jsp/*</from-view-id>
<navigation-case>
<from-outcome>showZoo</from-outcome>
<to-view-id>/jsp/zoo/zoo.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<!-- test page navigation rules -->
<navigation-rule>
<from-view-id>/jsp/test/userlist.jsp</from-view-id>
<navigation-case>
<from-outcome>edituser</from-outcome>
<to-view-id>/jsp/test/edituser.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>adduser</from-outcome>
<to-view-id>/jsp/test/adduser.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/jsp/test/adduser.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/jsp/test/userlist.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>cancel</from-outcome>
<to-view-id>/jsp/test/userlist.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/jsp/test/edituser.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/jsp/test/userlist.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>cancel</from-outcome>
<to-view-id>/jsp/test/userlist.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>