<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding a custom action - stuck in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4891#M726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To update the wiki just create an account and you are off&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php?title=Special:Userlogin&amp;amp;returnto=Main_Page" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php?title=Special:Userlogin&amp;amp;returnto=Main_Page&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just post here if it doesnt&amp;nbsp; work (the custom action).. and we'll look close but you should be well on your way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2005 22:13:50 GMT</pubDate>
    <dc:creator>rdanner</dc:creator>
    <dc:date>2005-10-18T22:13:50Z</dc:date>
    <item>
      <title>Adding a custom action - stuck</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4888#M723</link>
      <description>Hi,I am trying to add a custom action and am following the wiki docs up to the &amp;lt;TODO&amp;gt; tags and then trying to extrapolate from the mailAction code.I've got to the point of adding code to the action-services-context.xml file &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;bean id="sendsms" class="org.alfresco.repo.action.executer.Send</description>
      <pubDate>Tue, 18 Oct 2005 17:35:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4888#M723</guid>
      <dc:creator>paulkeogh</dc:creator>
      <dc:date>2005-10-18T17:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a custom action - stuck</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4889#M724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to add a custom action and am following the wiki docs up to the &amp;lt;TODO&amp;gt; tags and then trying to extrapolate from the mailAction code.&lt;BR /&gt;&lt;BR /&gt;I've got to the point of adding code to the action-services-context.xml file &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;bean id="sendsms" class="org.alfresco.repo.action.executer.SendSMSActionExecuter" parent="action-executer"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="sendSMSService"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ref bean="sendSMSService"&amp;gt;&amp;lt;/ref&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;for my custom action - when I do this I get the following exception;&lt;BR /&gt;&lt;BR /&gt;javax.faces.FacesException: Cannot get value for expression '#{NewRuleWizard.actions}'&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;org.apache.jasper.JasperException: Cannot get value for expression '#{NewRuleWizard.actions}'&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;javax.faces.el.EvaluationException: Cannot get value for expression '#{NewRuleWizard.actions}'&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;javax.faces.el.EvaluationException: org.alfresco.web.bean.wizard.NewRuleWizard&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.wizard.NewRuleWizard, property: actions&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;java.lang.reflect.InvocationTargetException&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;java.lang.NullPointerException: label&lt;BR /&gt;&lt;BR /&gt;Comment it, it runs again. I'm quite happy hacking and grepping my way through this to figure out whats going on, but can someone give me a pointer on this ? or even how to turn on some more debugging to see whats going on.&lt;BR /&gt;&lt;BR /&gt;Thanx,&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you have an incomplete configuration somewhere.&amp;nbsp; It has been a while since i wrote a custom action but here is what i remember.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you have to modiify:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o code your action&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o config your action&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o the code in the rules wizard (unless this model has changed… which it will have to at some point, to some pattern that supports dynamic &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;extentions)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o modify the application context-xml to point to your new wizard class + any additional configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o create jsp for under wizard for create and new-action&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o modify the navigation-config.xml &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o modify message.properties in the web client and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; o modify the action-config.properties in the repository&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it becomes pretty obvious what you need to modify by looking at a particular example.&amp;nbsp; in your case… check the email action and copy off that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry that is not a step by step but it should point out what needs changing so you can tell if you have covered the basis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-R&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 18:48:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4889#M724</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2005-10-18T18:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a custom action - stuck</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4890#M725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;you have to modiify:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; o code your action&lt;BR /&gt;&amp;nbsp;&amp;nbsp; o config your action&lt;BR /&gt;&amp;nbsp;&amp;nbsp; o the code in the rules wizard (unless this model has changed… which it will have to at some point, to some pattern that supports dynamic &lt;BR /&gt;extentions)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; o modify the application context-xml to point to your new wizard class + any additional configuration&lt;BR /&gt;&amp;nbsp;&amp;nbsp; o create jsp for under wizard for create and new-action&lt;BR /&gt;&amp;nbsp;&amp;nbsp; o modify the navigation-config.xml &lt;BR /&gt;&amp;nbsp;&amp;nbsp; o modify message.properties in the web client and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; o modify the action-config.properties in the repository&lt;BR /&gt;-R&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Awesome - thank you !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was missing the final 2 steps, as I don't know JSF well yet. Actually, I don't know much of any this yet but I'm getting there. Can't beat learning through doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd update the wiki if I had access&amp;nbsp;&amp;nbsp; :?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 21:21:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4890#M725</guid>
      <dc:creator>paulkeogh</dc:creator>
      <dc:date>2005-10-18T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a custom action - stuck</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4891#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To update the wiki just create an account and you are off&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php?title=Special:Userlogin&amp;amp;returnto=Main_Page" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php?title=Special:Userlogin&amp;amp;returnto=Main_Page&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just post here if it doesnt&amp;nbsp; work (the custom action).. and we'll look close but you should be well on your way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2005 22:13:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-custom-action-stuck/m-p/4891#M726</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2005-10-18T22:13:50Z</dc:date>
    </item>
  </channel>
</rss>

