Hi every one,
When i click right on a folder type ****_folder_**** i dont see my new custom action, any idea ?
I added a new action
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config version="1.0">
<scope type="****_folder_****">
<menuconfig id="context-menu">
<filter clientenv='appintg'>
<!--
<actionmenuitem dynamic="multiselect" action="delete"
hotkeyid="HOTKEY_DELETE" nlsid="MSG_DELETE" showifdisabled="false"
showifinvalid="false"/>
-->
</filter>
<filter clientenv='not appintg'>
<actionmenuitem dynamic="singleselect" action="viewfolder"
hotkeyid="HOTKEY_OPEN" nlsid="MSG_OPEN" showifdisabled="false"
showifinvalid="false" oncompleteclient="onOpenItem" />
<!--
<actionmenuitem dynamic="multiselect" action="enablediscussion"
nlsid="MSG_ENABLE_DISCUSSION" showifdisabled="false"
showifinvalid="false"/> <actionmenuitem dynamic="multiselect"
action="disablediscussion" nlsid="MSG_DISABLE_DISCUSSION"
showifdisabled="false" showifinvalid="false"/> <actionmenuitem
dynamic="singleselect" action="newcalendar"
nlsid="MSG_NEW_CALENDAR" showifdisabled="false"
showifinvalid="false"/>
-->
<menuseparator />
<actionmenuitem dynamic="multiselect" action="****_delete_folder"
hotkeyid="HOTKEY_DELETE" nlsid="MSG_DELETE" showifdisabled="false"
showifinvalid="false" />
<menuseparator />
<actionmenuitem dynamic="multiselect" action="properties"
hotkeyid="HOTKEY_VIEW_PROPERTIES_INFO" nlsid="MSG_PROPERTIES"
showifdisabled="false" showifinvalid="false" />
<menuseparator />
</filter>
</menuconfig>
<action id="****_delete_folder">
<params>
<param name="objectId" required="true" />
</params>
<execution class="com.documentum.web.formext.action.LaunchComponent">
<component>message</component>
<container>message_container</container>
</execution>
</action>
</scope>
</config>
And the component file :
<?xml version="1.0" encoding="UTF-8"?>
<config version='1.0'>
<scope>
<component id="message">
<params>
<param name='objectId' required='false'></param>
</params>
<pages>
<start>/custom/library/message/message.jsp</start>
</pages>
<class>com.franfinance.library.message.Message</class>
<nlsbundle></nlsbundle>
</component>
</scope>
</config>
And the jsp file :
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page errorPage="/wdk/errorhandler.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/dmform_1_0.tld" prefix="dmf"%>
<%@ taglib uri="/WEB-INF/tlds/dmformext_1_0.tld" prefix="dmfx"%>
<dmf:html>
<dmf:head>
<dmf:webform validation='false' />
</dmf:head>
<dmf:body cssclass='contentBackground'>
<dmf:form>
<table border=0 cellPadding=1 cellSpacing=1>
<tr>
<td colspan=4 align="left" class="listlabel" style="color: red"><dmf:label
name="selectLabel" nlsid="MSG_DELETE" />
</td>
</tr>
</table>
</dmf:form>
</dmf:body>
</dmf:html>
And my java class :
package com.****.library.message;
import com.documentum.web.common.ArgumentList;
import com.documentum.web.formext.component.Component;
public class Message extends Component{
private static final long serialVersionUID = 1L;
@Override
public void onInit(ArgumentList arg0) {
// TODO Auto-generated method stub
super.onInit(arg0);
}
@Override
public boolean onCommitChanges() {
// TODO Auto-generated method stub
return super.onCommitChanges();
}
}