cancel
Showing results for 
Search instead for 
Did you mean: 

Add a custom action in UI

ruizja
Champ in-the-making
Champ in-the-making
I would like to add an icon in the UI for execute my custom action, but I do not see how.. I read this:

http://wiki.alfresco.com/wiki/Externalised_Client_Actions

but I do not understand, specifically this fields in web-client-config-actions.xml file:

action-listener
    The JSF action listener method to call upon user selection of the action.
action
    The JSF action navigation outcome to execute upon user selection of the action.

Someone have any example or a good site to learn about?
Smiley Surprisedops:
2 REPLIES 2

ruizja
Champ in-the-making
Champ in-the-making
I am trying to execute the custom action in webscript myspaces, but for this I need to have access to "actions" Alfresco javascript object and inside "myspaces_preview_panel.ftl" I haven't it.

Anyone know how it could get access to this object?

Thanks,
Javier

ruizja
Champ in-the-making
Champ in-the-making
Finally I found the solution by creating a bean that receives the request AJAX, in the same way as they do the remaining shares of MySpace. The steps I have followed are:

1. edit myspaces.js with a new javascript function for send the AJAX request
2. edit myspaces_preview_panel.ftl to call the new javascript function
3. create a bean in the same way as "MySpacesBean" or "PortletActionsBean"
4. edit faces-config-beans.xml for register the new Bean.

I am trying to execute the custom action in webscript myspaces, but for this I need to have access to "actions" Alfresco javascript object and inside "myspaces_preview_panel.ftl" I haven't it.

Anyone know how it could get access to this object?

Thanks,
Javier