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.
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ taglib prefix="z" uri="http://www.zkoss.org/jsp/zul'%> <f:verbatim> <div id="width:100%; margin-bottom: 20px;"></f:verbatim> <h:outputText value="Timeline for the folder : #{DialogManager.bean.name}"/> <f:verbatim> </div> <div></f:verbatim> <h:outputLink value="/alfresco/charts/timeline/#{DialogManager.bean.zulFile}" target="_blank"><h:outputText value="Click here to load the timeline."/></h:outputLink> <f:verbatim> </div> </f:verbatim> <z:page> <z:window> <z:timeline id="tl1" height="600px" width="850px"> <z:bandinfo width="7%" id="b2" intervalUnit="year" intervalPixels="50" syncWith="b1"> <z:attribute name="eventSourceUrl"> /alfresco/charts/timeline/${DialogManager.bean.spacexmlfile} </z:attribute> </z:bandinfo> </z:timeline> </z:window> </z:page>
<z:page> <z:window> <z:timeline id="tl1" height="600px" width="850px"> <z:bandinfo width="7%" id="b2" intervalUnit="year" intervalPixels="50" syncWith="b1"> <% DialogManager dialogManager=(DialogManager) FacesHelper.getmenagedBean("DialogManager"); //you can do it too with, see what works. YOURDIALOG CLASS dialogManager=(YOURDIALOG CLASS ) FacesHelper.getmenagedBean("YOURDIALOG FACES NAME"); %> <z:attribute name="eventSourceUrl"> /alfresco/charts/timeline/<%=(dialogManager.getBean.getSpacexmlfile();%> //this is typed with no eclipse on hand, so sorry if it has some errors , but you get the drill :) </z:attribute> </z:bandinfo> </z:timeline> </z:window> </z:page>
<zk:page zscriptLanguage="java"> <zk:window> <zk:zscript> import java.lang.String; import org.alfresco.web.app.servlet.FacesHelper; import org.alfresco.web.bean.dialog.DialogManager; import javax.faces.context.FacesContext; import org.alfresco.custom.dialogs.ShowTimelineDialog; FacesContext fc = FacesContext.getCurrentInstance(); DialogManager dialogManager=(DialogManager) FacesHelper.getManagedBean(fc, "DialogManager"); ShowTimelineDialog myBean = (ShowTimelineDialog)dialogManager.getBean(); String eventSourceRes = "/charts/timeline/" + myBean.getEventSourceRes(); String eventSource = "/charts/timeline/" + myBean.getEventSource(); </zk:zscript> <zk:timeline id="tl1" height="600px" width="850px" > <zk:bandinfo width="15%" id="b2" intervalUnit="year" intervalPixels="50" syncWith="b1" eventSourceUrl="${eventSourceRes}" /> <zk:bandinfo width="85%" id="b1" intervalUnit="month" intervalPixels="100" eventSourceUrl="${eventSource}" /> </zk:timeline> </zk:window> </zk:page>