<?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 Help with alfresco and spring beans in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/help-with-alfresco-and-spring-beans/m-p/19300#M8530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, i'm working with alfresco and i'm making a web page using alfresco , java and spring.&lt;/P&gt;&lt;P&gt;But, my problem now is, i'm trying to call an specific bean from a javascript file and the console show me that my bean is not defined.&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;file.post.js&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var result = null;&lt;/P&gt;&lt;P&gt;result = TestFiltroImpl.getAllInformes();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;module-context.xml&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;&lt;SPAN&gt;'&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="TestFiltroImpl" parent="baseJavaScriptExtension"&lt;BR /&gt; class="cl.alemana.dataImpl.TestFiltroImpl"&amp;gt;&lt;BR /&gt; &amp;lt;property name="extensionName"&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;TestFiltroImpl&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="serviceRegistry"&amp;gt;&lt;BR /&gt; &amp;lt;ref bean="ServiceRegistry" /&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TestFiltroImpl.java&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;package cl.alemana.dataImpl;&lt;/P&gt;&lt;P&gt;import java.util.List;&lt;/P&gt;&lt;P&gt;import org.alfresco.repo.processor.BaseProcessorExtension;&lt;BR /&gt;import org.alfresco.service.ServiceRegistry;&lt;BR /&gt;import org.alfresco.service.namespace.NamespaceService;&lt;/P&gt;&lt;P&gt;import cl.alemana.data.Filtro;&lt;BR /&gt;import cl.alemana.data.TestFiltro;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;public class TestFiltroImpl extends BaseProcessorExtension{&lt;BR /&gt; private ServiceRegistry serviceRegistry;&lt;BR /&gt; private NamespaceService namespaceService;&lt;/P&gt;&lt;P&gt;public ServiceRegistry getServiceRegistry() {&lt;BR /&gt; return serviceRegistry;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;public void setServiceRegistry(ServiceRegistry serviceRegistry) {&lt;BR /&gt; this.serviceRegistry = serviceRegistry;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; public List&amp;lt;Filtro&amp;gt; getAllInformes() throws Exception{&lt;BR /&gt; TestFiltro tf = new TestFiltro();&lt;BR /&gt; return tf.getAllInformes();&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, maybe exist an specific file.xml where i need declare my beans (and i don't know because i'm new using alfresco) ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;or i need save my module-context.xml file in a specific path in alfresco.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 18:43:02 GMT</pubDate>
    <dc:creator>kefreng</dc:creator>
    <dc:date>2017-02-21T18:43:02Z</dc:date>
    <item>
      <title>Help with alfresco and spring beans</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/help-with-alfresco-and-spring-beans/m-p/19300#M8530</link>
      <description>Hi everyone, i'm working with alfresco and i'm making a web page using alfresco , java and spring.But, my problem now is, i'm trying to call an specific bean from a javascript file and the console show me that my bean is not defined.For example,&amp;nbsp;file.post.jsvar result = null;result = TestFiltroImpl.</description>
      <pubDate>Tue, 21 Feb 2017 18:43:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/help-with-alfresco-and-spring-beans/m-p/19300#M8530</guid>
      <dc:creator>kefreng</dc:creator>
      <dc:date>2017-02-21T18:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help with alfresco and spring beans</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/help-with-alfresco-and-spring-beans/m-p/19301#M8531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems your bean declaration is right.&lt;/P&gt;&lt;P&gt;How are you deploying your -context.xml file, and where exactly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post more information here in order for us to try to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 20:35:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/help-with-alfresco-and-spring-beans/m-p/19301#M8531</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-02-22T20:35:19Z</dc:date>
    </item>
  </channel>
</rss>

