AnsweredAssumed Answered

Custom JSF Dashlet strange behaviour

Question asked by rhofkens on Dec 13, 2006
Latest reply on Dec 14, 2006 by rhofkens

I've created a JSF dashlet with a custom bean.  Everything is working fine, except that the actionlistener on my commandbutton is fired automatically as soon as the "My alfresco" dashboard is loaded. (the logs show that the releaseSelectedDocs method is executed)

Is this normal in the JSF request cycle?

My dashlet JSP code:

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

   rowClasses="recordSetRow, RecordSetRowAlt"
   <!– Document Selection column –>
      <f:facet name="header">
         <h:outputText value="Auswählen" />
      <h:selectBooleanCheckbox value="#{ditdoc.isMarkedForRelease}" />
   <!– Document Name columns –>
      <f:facet name="header">
         <h:outputText value="Dokumentname" />
      <h:outputText value="#{ditdoc.fileName}" />

      value="Ausgewählte Dokumente freigeben und publizieren"   />