07-01-2009 08:35 AM
<config>
<actions>
<action id="myAction">
<label>MyAction</label>
<image>/images/icons/add.gif</image>
</action>
<!– Add action to more actions menu for each document–>
<action-group id="document_browse_menu">
<action idref="myAction" />
</action-group>
</actions>
</config>
<config>
<actions>
<action id="myAction">
<label>MyAction</label>
<image>/images/icons/add.gif</image>
<action>es.alfresco.myAction</action>
</action>
<!– Add action to more actions menu for each document–>
<action-group id="document_browse_menu">
<action idref="myAction" />
</action-group>
</actions>
</config>
07-02-2009 09:50 AM
07-03-2009 02:43 AM
<beans>
<bean id="myAction"
class="es.sia.alfresco.action.executer.MyActionExecuter"
parent="actionexecuter">
<property name="nodeService">
<ref bean="NodeService" />
</property>
</bean>
<bean id="extension.actionResourceBundles" parent="actionResourceBundles">
<property name="resourceBundles">
<list>
<value>alfresco.extension.custodiaactionmessages</value>
</list>
</property>
</bean>
</beans>
<action-listener>#{myAction.executeImpl}</action-listener>
javax.faces.el.EvaluationException: Exception while invoking expression #{myAction.executeImpl}
caused by:
javax.faces.el.PropertyNotFoundException: Base is null: myAction
07-03-2009 03:07 AM
javax.faces.el.EvaluationException: Exception while invoking expression #{myAction.executeImpl}
caused by:
java.lang.NoSuchMethodException: es.sia.alfresco.action.executer.MyActionExecuter.executeImpl(javax.faces.event.ActionEvent)
07-08-2009 08:42 AM
<h:commandLink … actionLister="#{myAction.executeImpl}" value="…" action="…"/>
package es.sia.alfresco.action.executer;
class MyActionExecuter extends … {
public void executeImpl(ActionEvent ae) {
Object val = ae.getSource();
//do something with the "clicked source"
}
}
07-08-2009 09:00 AM
Hi Jarret, thank you for your response.
Yes, i have created the file 'my-action-context.xml' in path ''tomcat>/shared/classes/alfresco/extension/":
<beans>
<bean id="myAction"
class="es.sia.alfresco.action.executer.MyActionExecuter"
parent="actionexecuter">
<property name="nodeService">
<ref bean="NodeService" />
</property>
</bean>
<bean id="extension.actionResourceBundles" parent="actionResourceBundles">
<property name="resourceBundles">
<list>
<value>alfresco.extension.custodiaactionmessages</value>
</list>
</property>
</bean>
</beans>
But, ¿how is the calling in the <action-listener> tag, I have proved with:
<action-listener>#{myAction.executeImpl}</action-listener>
But i get this error
javax.faces.el.EvaluationException: Exception while invoking expression #{myAction.executeImpl}
caused by:
javax.faces.el.PropertyNotFoundException: Base is null: myAction
Thank you very much for your help.
<bean id="myAction"
class="es.sia.alfresco.action.executer.MyActionExecuter"
parent="action-executer">
08-14-2009 12:28 PM
<alfresco-config>
<config evaluator="aspect-name" condition="tag:taggable">
<property-sheet>
<show-property name="tag:tags" />
</property-sheet>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<action-handlers>
<handler name="tag" class="org.alfresco.sample.TagActionHandler" />
</action-handlers>
</config>
<config>
<actions>
<action id="tag">
<label>Tag Document</label>
<image>/images/icons/tagDoc.gif</image>
<action-listener>#{tag.executeImpl}</action-listener>
</action>
<!– Add action to more actions menu for each document –>
<action-group id="document_browse_menu">
<action idref="tag" />
</action-group>
</actions>
</config>
</alfresco-config>
… but I'm getting this error:
javax.faces.el.EvaluationException: Exception while invoking expression #{tag.executeImpl}
caused by:
java.lang.NoSuchMethodException: org.alfresco.sample.TagActionExecuter.executeImpl(javax.faces.event.ActionEvent)
Can anyone please help??…02-10-2011 09:23 AM
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.