07-06-2010 02:30 AM
<config>
<client>
<!– the login page the client will use –>
<login-page>/jsp/extension/login.jsp</login-page>
</client>
</config>
<config>
<client>
<!– the login page the client will use –>
<login-page>/jsp/extension/login.jsp</login-page>
<relogin-page>/jsp/extension/relogin.jsp</relogin-page>
</client>
</config>
07-06-2010 07:27 AM
<navigation-rule>
<from-view-id>/jsp/*</from-view-id>
<navigation-case>
<from-outcome>logout</from-outcome>
<to-view-id>/jsp/login.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>relogin</from-outcome>
<to-view-id>/jsp/relogin.jsp</to-view-id>
</navigation-case>
</navigation-rule>
07-07-2010 01:04 AM
07-07-2010 07:00 AM
07-09-2010 07:42 AM
07-12-2010 02:21 AM
Bonjour,
voici le pourquoi de vos derniers petits tracas, je pense que cela vous éclairera sur la bonne méthode de surcharge de règle de navigation :
http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions#JSF_configuration_files
<?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>
<navigation-rule>
<description>
The decision rule used by the NavigationHandler to
determine which view must be displayed after the
current view, login.jsp is processed.
</description>
<from-view-id>/jsp/extension/login.jsp</from-view-id>
<navigation-case>
<description>
Indicates to the NavigationHandler that the browse.jsp
view must be displayed if the Action referenced by a
UICommand component on the login.jsp view returns
the outcome "success".
</description>
<from-outcome>success</from-outcome>
<to-view-id>/jsp/browse/browse.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<!– rule to get back to the login page from anywhere –>
<navigation-rule>
<from-view-id>/jsp/*</from-view-id>
<navigation-case>
<from-outcome>logout</from-outcome>
<to-view-id>/jsp/extension/login.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>relogin</from-outcome>
<to-view-id>/jsp/extension/relogin.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
07-12-2010 03:03 AM
07-12-2010 03:10 AM
07-12-2010 07:44 AM
faces-config.jar
– META-INF
– faces-config.xml
– MANIFEST.MF
jar.exe cvf [i]adresse_de_sortie\faces-config.jar[/i] [i]adresse de faces-config.xml[/i]
Il créera le fichier MANIFEST.MF automatiquement (voir http://www.siteduzero.com/tutoriel-3-30916-creer-une-archive-jar-executable.html)07-13-2010 12:35 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.