<?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 AMP modules JSF managed beans in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88530#M60073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have to admit…. I cheated!&amp;nbsp; I edited the Module Management Tool (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Module_Management_Tool" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Module_Management_Tool&lt;/A&gt;&lt;SPAN&gt;) to copy the /web/WEB-INF directory into the AMP'd war.&amp;nbsp; I did this in order to copy my faces-config-custom.xml into the new war.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Everything works great! except for a small issue I'm having trouble addressing.&amp;nbsp; I would like to be able apply two AMP modules to a war.&amp;nbsp; Both need to specify managed-JSF-beans (in faces-config-custom.xml).&amp;nbsp; When I use the MMT tool to AMP my war the second faces-config-custom.xml is used.&amp;nbsp; This presents an issue for me at least. I'm not a JSF expert by any means, I get by.&amp;nbsp; Is there a way to include a number of JSF confg files using wildcard specification such as adding WEB-INF/faces-*.xml to the web.xml.&amp;nbsp; Thus far, I have had no success figuring this out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 16:17:20 GMT</pubDate>
    <dc:creator>jenglert</dc:creator>
    <dc:date>2007-03-28T16:17:20Z</dc:date>
    <item>
      <title>AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88530#M60073</link>
      <description>Hey all,&amp;nbsp;&amp;nbsp; I have to admit…. I cheated!&amp;nbsp; I edited the Module Management Tool (http://wiki.alfresco.com/wiki/Module_Management_Tool) to copy the /web/WEB-INF directory into the AMP'd war.&amp;nbsp; I did this in order to copy my faces-config-custom.xml into the new war.&amp;nbsp; &amp;nbsp;&amp;nbsp; Everything works great! except for</description>
      <pubDate>Wed, 28 Mar 2007 16:17:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88530#M60073</guid>
      <dc:creator>jenglert</dc:creator>
      <dc:date>2007-03-28T16:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88531#M60074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes you can add multiple faces-config files to your WAR file; but there are some restrictions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you only add new beans and don't override existing ones, you can place the file in the META-INF folder of a JAR file in your AMP file. JSF spec states that all "META-INF/faces-config.xml" files in the webapps' resource path get loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg: ampfile&amp;gt;lib&amp;gt;jarfile&amp;gt;META-INF&amp;gt;faces-config.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will get picked up as the jarfile will be installed in the lib folder of the webapp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, because these file are loaded before Alfresco's own faces-config files, you cannot use this method to override Alfresco's beans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(more info here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you do override beans, you must use the faces-config-custom.xml in the WEB-INF folder.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 21:21:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88531#M60074</guid>
      <dc:creator>frederick</dc:creator>
      <dc:date>2007-03-28T21:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88532#M60075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And about navigation rules in face-config.xml, what are restrictions ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can we modify navigation rules ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 09:16:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88532#M60075</guid>
      <dc:creator>ribz33</dc:creator>
      <dc:date>2007-04-05T09:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88533#M60076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to override JSF navigation rules by using faces-config.xml in the location that Frederick mentions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:13:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88533#M60076</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-04-05T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88534#M60077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to override certain beans and hence need to use faces-config-custom.xml &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While packaging the AMP file which is the folder in AMP structure which Maps on to WEB-INF? Basically where do I put my faces-config-custom.xml file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From wiki…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- /config - mapped into the /WEB-INF/classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- /lib - mapped into /WEB-INF/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- /licenses &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- /web&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |- /jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |- /css&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |- /images&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; |- /scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- module.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; |- file-mapping.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;file-mapping.properties does not work in 2.0 (as per wiki).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 21:46:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88534#M60077</guid>
      <dc:creator>harshad</dc:creator>
      <dc:date>2007-04-05T21:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88535#M60078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There seems to be no direct mapping to WEB-INF currently. This is what the default-file-mapping.properties looks like in 2.0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# The default AEP =&amp;gt; WAR file mappings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/config=/WEB-INF/classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/lib=/WEB-INF/lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/licenses=/WEB-INF/licenses&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/web/jsp=/jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/web/css=/css&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/web/images=/images&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/web/scripts=/scripts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you'd either have to edit this file (located in org.alfresco.repo.module.tool), or wait for 2.1 (I think custom mappings will be available then).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 07:25:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88535#M60078</guid>
      <dc:creator>frederick</dc:creator>
      <dc:date>2007-04-10T07:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88536#M60079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've raised an issue in JIRA for this: &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1380" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1380&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 10:19:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88536#M60079</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-04-10T10:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88537#M60080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok. Thanks for the info. I have one more need. I have an application in which&amp;nbsp; I have create a couple of spaces and then have a couple of space rules configured on them by uploading scripts under datadictionary/scripts space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I package this in an AMP?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where should I copy the scripts so that they go under the datadictionary/scripts space. I guess If I take an 'acp' dump of the folder then the folders and the space rules will be exported but the scripts have to be copied separately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 23:18:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88537#M60080</guid>
      <dc:creator>harshad</dc:creator>
      <dc:date>2007-04-11T23:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88538#M60081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1349" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1349&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Module Management Tool on HEAD is a standalone component now.&amp;nbsp; So, any changes can be immediately picked up and used without having to wait for a release.&amp;nbsp; I'll try to add the custom mapping in as soon as possible.&amp;nbsp; But as a quick win, what other common mappings should go into the default?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 10:27:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88538#M60081</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2007-04-16T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: AMP modules JSF managed beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88539#M60082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is how to override JSF managed beans in an AMP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) At the root of the AMP, create a &lt;/SPAN&gt;&lt;STRONG&gt;file-mapping.properties&lt;/STRONG&gt;&lt;SPAN&gt; file containing &lt;/SPAN&gt;&lt;STRONG&gt;/WEB-INF=/WEB-INF&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) At the root of the AMP, create a &lt;/SPAN&gt;&lt;STRONG&gt;WEB-INF&lt;/STRONG&gt;&lt;SPAN&gt; directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Put your faces config file in the WEB-INF directory with name &lt;/SPAN&gt;&lt;STRONG&gt;faces-config-custom.xml&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nicolas Raoul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 08:53:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-modules-jsf-managed-beans/m-p/88539#M60082</guid>
      <dc:creator>nicolasraoul</dc:creator>
      <dc:date>2010-05-06T08:53:02Z</dc:date>
    </item>
  </channel>
</rss>

