cancel
Showing results for 
Search instead for 
Did you mean: 

Call action from javascript

robain
Champ in-the-making
Champ in-the-making
Here what i need to do

call this action  add_adm_content
def:
<action id="add_adm_content">
           <permissions>
               <permission allow="true">CreateChildren</permission>
           </permissions>
           <label-id>add_content</label-id>
           <image>/images/icons/add.gif</image>
           <action>dialog:addContent</action>
           <action-listener>#{AddContentDialog.start}</action-listener>
         </action>

when there is a change in a drop-down option. the drop down snipplet.

<hSmiley SurprisedutputText value=""/>
<hSmiley SurprisedutputText value="#{msg.type}:"/>
<h:selectOneMenu value="#{WizardManager.bean.objectType}">
<f:selectItems value="#{WizardManager.bean.objectTypes}" />
</h:selectOneMenu>

Is this possible? I could define the onclick event on the drop-down but how do i reference it to the action.

Thanks for the help.
1 REPLY 1

dgenard
Champ on-the-rise
Champ on-the-rise
Try opening a new window with this location :
/alfresco/navigate/dialog/addContent/5ab244d2-2ba6-11dc-810a-67924bfec572
where the given id is the id of the parent space.

Denis