If you want two separate requests to go to the server, and each request to invoke a webservice you could use the following approach:
- Create an Async Command Button for the first action, and an Async Hidden Command for the second action
- Add an Invoke Script to the CmdButton
- Have the InvokeScript raise the HiddenCommand on the OnClick event.
Hope this helps,
–mark
<view>
<control component-type='com.webmethods.caf.faces.command.async.Button' renderer-type='com.webmethods.caf.faces.command.async.Button'>
<property name='action' value='#{activePageBean.actionOne}' />
<property name='id' value='button' />
<property name='value' value='Action One' />
<control component-type='com.webmethods.caf.faces.component.script.InvokeClientScript' renderer-type='com.webmethods.caf.faces.render.html.script.InvokeClientScriptRenderer'>
<property name='action' value='raise' />
<property name='control' value='defaultForm:hiddenCommand' />
<property name='event' value='onclick' />
<property name='id' value='invokeClientScript' />
</control>
</control>
<control component-type='com.webmethods.caf.faces.command.async.Hidden' renderer-type='com.webmethods.caf.faces.command.async.Hidden'>
<property name='action' value='#{activePageBean.actionTwo}' />
<property name='id' value='hiddenCommand' />
</control>
</view>
#webMethods#MWS-CAF-Task-Engine#webMethods-BPMS