09-27-2010 04:04 AM
09-27-2010 12:56 PM
<action id="actionname">
<label-id>label</label-id>
<evaluator>see what eveluators are if you do not want this for all nodes, but for selected only.
</evaluator>
<image>/images/icons/image.png
</image>
<action-listener>#{BrowseBean.setupContentAction}//this makes current node
</action-listener>
<action>dialog:DIALOG_NAME</action>
<params>
<param name="id">#{actionContext.id}</param>//YOU COPY PASTE THIS PART
</params>
</action>
JUST FOR REFERENCE{FROM BrowseBean}
public void setupSpaceAction(ActionEvent event)
{
UIActionLink link = (UIActionLink)event.getComponent();
Map<String, String> params = link.getParameterMap();
String id = params.get("id");
setupSpaceAction(id, true);
}
put action on documents in browser.
<action-group id="document_browse_menu">
<action idref="actionname" />
</action-group>
3:define dialog:<dialog name="send_via_email" page="/jsp/extension/yourjsp.jsp"
managed-bean="yourDialogBean" icon="/images/icons/icon.png"
title-id="title" description-id="_description"
show-ok-button="false" error-message-id="empty_message" />
4:create jsp:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a"%>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r"%>
<%@page import="org.alfresco.web.app.servlet.FacesHelper"%>
<%@page import="javax.faces.context.FacesContext"%>
<%@page import="org.alfresco.docassistent.ZohoDialogBean"%><f:loadBundle
basename="alfresco.extension.webclientlogin" var="customMsg" />
<f:loadBundle basename="alfresco.messages.webclient" var="msg" />
<f:verbatim>
<script type="text/javascript"
src="<%=request.getContextPath()%>/scripts/validation.js"> </script>
<script type="text/javascript">
var finishButtonPressed = false;
window.onload = pageLoaded;
function pageLoaded()
{
document.getElementById("wizard:next-button").disabled = true;
document.getElementById("wizard:back-button").disabled= true;
document.getElementById("wizard:cancel-button").disabled=true;
document.getElementById("dialog:finish-button").value = 'Ok';
checkButtonState();
}
function checkButtonState()
{
}
</script>
<h:form>
<h:outputText value="#{msg.create_space_step1_title}"></h:outputText>
</h:form>
</f:verbatim>
if this was not helpful then nothing is
09-28-2010 04:56 AM
public String getName(){
return this.browseBean.getSpaceAction().getName();
}
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.