As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<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>
<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" />
<%@ 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>
public String getName(){ return this.browseBean.getSpaceAction().getName(); }