Daniel CERQUEIRA | 13 May 10:44
Picon
Favicon

Re: [ECM] Action id="logout" in the actions-contrib.xml

Yes, my component "actions-contrib.xml" is read because i defined :

<action id="CURRENT_SELECTION_ADDTOLIST" enabled="false">
    </action>

    <action id="CURRENT_SELECTION_TRASH" enabled="false">
    </action>
<action id="CLIPBOARD_PASTE" enabled="false">
    </action>
 <action id="CURRENT_SELECTION_COPY" enabled="false">
    </action>

The buttons "copy", "paste", "delete" and "add to liste" are not enabled in the application.
But "logout" is always shown and the logs are any error messages.


it's the good "id" called ? Can we really to hide "Logout"?

 <action id="logout" enabled="false" />

Thx



2008/5/8 Florent Guillaume <fg-CQNGlVZ5l00AvxtiuMwx3w@public.gmane.org>:
This should work.
Are you sure your component (.xml file) is read and you don't have a duplicate component id?
Please check the logs for your jar name and see if there are any error messages just below its deployment.

Florent


On 7 May 2008, at 17:19, Daniel CERQUEIRA wrote:

Hi all,

I try to define the  <action id="logout"> at false (enabled="false") in the "actions-contrib.xml" for not to show in the header (USER_SERVICES) " Log out " and " Log in ".
But I always see in the header "Log out " and "Log in".

It's normal?

Thx


My XML CODE

actions-contrib.xml
------------------------------------------------------------------------------------------

<extension target="org.nuxeo.ecm.platform.actions.ActionService"
   point="actions">
....
...
...

 <action id="logout" enabled="false" />

...
...
...

</extension>



The NUXEO CODE

actions-contrib.xml
----------------------------------------------------------------------------------------------------
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
   point="actions">

   <!-- server actions -->

   <action id="user_dashboard" link="user_dashboard" enabled="true"
     label="command.user_dashboard" order="10">
     <category>USER_SERVICES</category>
     <filter id="user_dashboard_enabled">
       <rule grant="true">
         <condition>#{userServicesContext.dashboardEnabled}</condition>
       </rule>
     </filter>
   </action>

   <action id="logout" link="#{loginLogoutAction.logout}" enabled="true"
     label="command.logout" order="200">
     <category>USER_SERVICES</category>
   </action>

   <action id="user_manager" link="#{userManagerActions.viewUsers}"
     enabled="true" label="command.manageMembers" order="20">
     <category>USER_SERVICES</category>
     <filter id="user_manager">
         <rule grant="true">
             <condition>#{userServicesContext.userManagerEnabled}</condition>
         </rule>
     </filter>
   </action>

.....
....
....
 </extension>



--
CERQUEIRA Daniel
Asyres
6, 8, 10 rue Troyon
92316 Sèvres
Tel : 01.55.64.05.64 _______________________________________________

--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87






--
CERQUEIRA Daniel
Asyres
6, 8, 10 rue Troyon
92316 Sèvres
Tel : 01.55.64.05.64
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm

Gmane