AnsweredAssumed Answered

[solved]use DialogManager bean properties with taglibs

Question asked by ethan on Oct 1, 2010
Latest reply on Oct 11, 2010 by ethan
Hi :)

I created an action with a dialog which is supposed to load a graphic timeline component (from the ZK framework). the component must load xml files which are named according to the Space the action is triggered on. I wanted to use the #{} as I already did for other dialogs but the taglib of the ZK framework doesn't read the value from it.

Here is the code of my jsp page :

<%@ taglib uri="" prefix="h" %>
<%@ taglib uri="" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ taglib prefix="z" uri="'%>

<div id="width:100%; margin-bottom: 20px;"></f:verbatim>
   <h:outputText value="Timeline for the folder : #{}"/>
   <h:outputLink value="/alfresco/charts/timeline/#{DialogManager.bean.zulFile}" target="_blank"><h:outputText value="Click here to load the timeline."/></h:outputLink>

      <z:timeline id="tl1" height="600px" width="850px">
         <z:bandinfo width="7%" id="b2" intervalUnit="year" intervalPixels="50"
            <z:attribute name="eventSourceUrl">

the #{} works fine with the <h:outputText> tag but the #{DialogManager.bean.spacexmlfile} is displayed as it (and not its value) inside the <z:attribute> tag.

So I wanted to know if there was a way to convert the #{DialogManager.bean.spacexmlfile} into a jsp variable or if there was a way to use java code inside my jsp page to get the value of the spacexmlfile variable ? Is there a class that could allow me to access the bean properties inside the jsp page?

Thank you :)