cancel
Showing results for 
Search instead for 
Did you mean: 

override edit-content-properties JSP

alpha
Champ in-the-making
Champ in-the-making
hi guys,

i have tried to override the edit content JSP for a specific document type with this config in web-client-config-custom :

<config evaluator="node-type" condition="my:docum">
   <navigation>
         <override from-outcome="showDocDetails" to-view-id="/jsp/extension/mydocum-details.jsp" />
      </navigation>
   <dialogs>
      <dialog name="editContentProperties"
                  page="/jsp/extension/edit-mydocum-properties.jsp"
                  managed-bean="EditContentPropertiesDialog"
                  icon="/images/icons/edit_properties_large.gif"
                  title-id="modify_content_properties"
                  description-id="edit_content_description" />
   </dialogs>
</config>
this code was taken from the forum.

when i try to edit the content properties from a document of this type the edit-mydocument-properties.jsp is not displayed, only the original edit-content-properties is displayed.. Smiley Sad

here is what the console displays in debug mode :
DEBUG [web.app.AlfrescoNavigationHandler] Found config for dialog 'editContentProperties': org.alfresco.web.config.DialogsConfigElement$DialogConfi
g@ee36ee (name=editContentProperties page=/jsp/content/edit-content-properties.jsp managed-bean=EditContentPropertiesDialog actions-config-id=null icon=/images/icons/edit_properties_large.gif title=null titleId=modify_content_properties des
cription=null descriptionId=edit_content_description errorMsgId=error_dialog isOKButtonVisible=true buttons=null)
14:12:34,952 DEBUG [web.app.AlfrescoNavigationHandler] view stack: [/jsp/browse/browse.jsp, /jsp/extension/mydocum-details.jsp]

the overriding works fine for the showDocDetails outcome.
Please give a little help. Smiley Surprisedops:
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
I can not see anything obviously wrong with what you have done.

I have a feeling that this is a bug. Could you post the previous few lines of debug, there should be an entry that starts "Using dispatch context for dialog lookup" or "Looking up dialog in global config".

If it is the latter message it confirms this is a bug as the dispatch context has not been setup. The dispatch context usually only gets setup when browsing spaces so it's probably not being done for the action to launch the edit properties dialog.

If this is the case please raise this as a bug in JIRA so we can fix it for the 2.1 release.

gavinc
Champ in-the-making
Champ in-the-making
This was indeed a bug, I have reproduced it here.

I have also fixed the problem, the code has been checked into SVN and will therefore be part of the 2.1 release.

http://issues.alfresco.com/browse/CHK-661