AnsweredAssumed Answered

Call action from javascript

Question asked by robain on Apr 24, 2008
Latest reply on Apr 29, 2008 by dgenard
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.

<h:outputText value=""/>
<h:outputText 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.

Outcomes