cancel
Showing results for 
Search instead for 
Did you mean: 

'jsp/extension/document-details.jsp' does not work

eldi
Champ in-the-making
Champ in-the-making
Hello,

I have a problem when extending the "document-details.jsp", i followed the example here : http://wiki.alfresco.com/wiki/Customising_An_Alfresco_JSP

As result, the original "http://wiki.alfresco.com/wiki/Customising_An_Alfresco_JSP" is shwon every time when i click on the 'View Deteails' icon.

My alfresco version is 4.2c.

But in aprallel, my 'jsp/extension/login' page works fine why this "document-details.jsp" could not work fine ???
I have no error in the logs.
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
Clear your cache of browser
Delete  work and temp directory of Alfresco server
That could be the issue some times.

eldi
Champ in-the-making
Champ in-the-making
Hello,

Thank you for your advice but it still does not work…Even after having deleted the temp & wsork directory.
I clean the cache i my browser also.

This is my faces-config.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>

   <!– *************************************************************** –>
   <!– Empty JSF config file to prevent errors being thrown during JSF –>
   <!– initialisation. Overwrite this file with your custom version.   –>
   <!– *************************************************************** –>
   <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>
  
  <!– DOCUMENT DETAILS –>
    <navigation-rule>
      <from-view-id>/jsp/*</from-view-id>
      <navigation-case>
         <from-outcome>showDocDetails</from-outcome>
         <to-view-id>/jsp/extension/document-details.jsp</to-view-id>
      </navigation-case>
   </navigation-rule>
  
   <managed-bean>
      <description>
         The bean that backs up the Login screen
      </description>
      <managed-bean-name>LoginBean</managed-bean-name>
      <managed-bean-class>com.policefederale.web.login.xCustomLoginBean</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
         <property-name>nodeService</property-name>
         <value>#{NodeService}</value>
      </managed-property>
      <managed-property>
         <property-name>authenticationService</property-name>
         <value>#{AuthenticationService}</value>
      </managed-property>
      <managed-property>
         <property-name>personService</property-name>
         <value>#{PersonService}</value>
      </managed-property>
      <managed-property>
         <property-name>navigator</property-name>
         <value>#{NavigationBean}</value>
      </managed-property>
      <managed-property>
         <property-name>browseBean</property-name>
         <value>#{BrowseBean}</value>
      </managed-property>
      <managed-property>
         <property-name>userPreferencesBean</property-name>
         <value>#{UserPreferencesBean}</value>
      </managed-property>
   </managed-bean>
  
</faces-config>


For login page it does work but not for the "document-details.jsp".

mitpatoliya
Star Collaborator
Star Collaborator
So, you have changed OOTB faces-config.xml to replace all the login.jsp entries with extension\login.jsp right?
Configurations looks just fine. Must be missing something.
Also make sure u are returning proper outcome message from your custom login bean.