<?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: [Solved]Problem overriding the action definitions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91354#M62330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, thank you gavin for all those informations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed I did not override faces-config-navigation.xml because i didn't to override alfresco's file but i have define new navigation rules for my custom jsp in a face-config.xml included in a .jar file containing all my customizations!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a last question related to this topic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said before it is very easy to override action such as Create space, Advanced Space Wizard, …. and to add them an evaluator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can I had an evaluator to the item "Add Content" ??? (I did not found the definitions of this action anywhere…)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to disable this in some space thanks to an evaluator. (Those space must contains only spaces and not files)…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JÃ©rÃ©mie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2007 08:29:31 GMT</pubDate>
    <dc:creator>jey</dc:creator>
    <dc:date>2007-06-01T08:29:31Z</dc:date>
    <item>
      <title>[Solved]Problem overriding the action definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91350#M62326</link>
      <description>Hi,I read here (http://forums.alfresco.com/viewtopic.php?t=5690)&amp;nbsp; that we can override the definition of actions.I tried it an it works fine.I have override the action "create_space" without any problem.But now I want to override the action "manage_deleted_items".I want to add an evaluator to give a</description>
      <pubDate>Fri, 25 May 2007 13:09:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91350#M62326</guid>
      <dc:creator>jey</dc:creator>
      <dc:date>2007-05-25T13:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved]Problem overriding the action definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91351#M62327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This action got moved to the user console page in a previous release and the action definition has been left in the web-client-config-actions.xml file by the looks of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The action is now defined in /jsp/users/user-console.jsp as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;a:actionLink id="manage-deleted-items" value="#{msg.manage_deleted_items}" action="dialog:manageDeletedItems" image="/images/icons/trashcan.gif" /&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can wrap this inside a boolean evaluator to get the effect you want. You can do this as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;a:booleanEvaluator value="#{NavigationBean.currentUser.admin == true}"&amp;gt;&lt;BR /&gt;&amp;lt;a:actionLink id="manage-deleted-items" value="#{msg.manage_deleted_items}" action="dialog:manageDeletedItems" image="/images/icons/trashcan.gif" /&amp;gt;&lt;BR /&gt;&amp;lt;/a:booleanEvaluator&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 08:27:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91351#M62327</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-05-29T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved]Problem overriding the action definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91352#M62328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you gavin for your reply …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have allready build a new jsp (copy/past of user-console.jsp) and put it jsp/extension/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I used the boolean evaluator &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But to use my custom jsp I have to overide 2 navigation rules in&amp;nbsp; face-config.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i am not sure of the compliance with future version …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I was trying to find a "BETTER" way … (with action definition).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you think it is fine like this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and have a nice day!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2007 07:55:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91352#M62328</guid>
      <dc:creator>jey</dc:creator>
      <dc:date>2007-05-30T07:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved]Problem overriding the action definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91353#M62329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ideally, the action should really be using the one defined in web-client-config-actions.xml as it was before, then you only need to override the action definition, feel free to raise this as an issue in &lt;/SPAN&gt;&lt;A href="http://issues.alfresco.com" rel="nofollow noopener noreferrer"&gt;JIRA&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the way you have done it is OK if you also override the faces navigation rules. I'm presuming at the moment you've changed our faces-config-navigation.xml file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To override faces navigation rules you need to re-define them in a faces-config.xml file placed in the META-INF folder of a JAR file, see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions#JSF_configuration_files" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions#JSF_configuration_files&lt;/A&gt;&lt;SPAN&gt; for details. If you follow this it will be upgrade proof.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 08:23:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91353#M62329</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-05-31T08:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved]Problem overriding the action definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91354#M62330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, thank you gavin for all those informations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed I did not override faces-config-navigation.xml because i didn't to override alfresco's file but i have define new navigation rules for my custom jsp in a face-config.xml included in a .jar file containing all my customizations!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a last question related to this topic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said before it is very easy to override action such as Create space, Advanced Space Wizard, …. and to add them an evaluator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But how can I had an evaluator to the item "Add Content" ??? (I did not found the definitions of this action anywhere…)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to disable this in some space thanks to an evaluator. (Those space must contains only spaces and not files)…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JÃ©rÃ©mie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 08:29:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91354#M62330</guid>
      <dc:creator>jey</dc:creator>
      <dc:date>2007-06-01T08:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved]Problem overriding the action definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91355#M62331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As I said before it is very easy to override action such as Create space, Advanced Space Wizard, …. and to add them an evaluator.&lt;BR /&gt;But how can I had an evaluator to the item "Add Content" ??? (I did not found the definitions of this action anywhere…)&lt;BR /&gt;&lt;BR /&gt;I want to disable this in some space thanks to an evaluator. (Those space must contains only spaces and not files)…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately at present that requires modifying browse.jsp - it is a bug really since virtually all actions are now externally configurable and overridable but that action is not! I have created a bug for it so hopefully it can be fixed for 2.1:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AWC-1253" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AWC-1253&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 10:23:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91355#M62331</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-06-01T10:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved]Problem overriding the action definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91356#M62332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you kevin …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I take good notes of it and I will expect the 2.1 version &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 13:05:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solved-problem-overriding-the-action-definitions/m-p/91356#M62332</guid>
      <dc:creator>jey</dc:creator>
      <dc:date>2007-06-01T13:05:39Z</dc:date>
    </item>
  </channel>
</rss>

