Hi
I got this working now. The following is the piece of code that works. The changes I did are highlighted in bold.
<h:panelGroup styleClass="panelGroup" id="summaryGroup">
<h:selectOneListbox styleClass="selectOneListbox" id="listSummaryAddresses">
<f:selectItems value="#{pc_AdContentCaptureView.addressList}"/>
</h:selectOneListbox>
</h:panelGroup>
<hx:ajaxRefreshRequest target="summaryGroup" id="ajaxRefreshRequest1"></hx:ajaxRefreshRequest>
<h:panelGroup styleClass="panelGroup" id="addressGroup">
<h:selectOneRadio disabledClass="selectOneRadio_Disabled"
enabledClass="selectOneRadio_Enabled" styleClass="selectOneRadio"
id="radioAddressList" value="#{pc_AdContentCaptureView.selectedAddress}" layout="pageDirection">
<f:selectItems value="#{pc_AdContentCaptureView.addressList}" />
</h:selectOneRadio>
<hx:ajaxRefreshSubmit target="addressGroup" id="ajaxRefreshSubmit1"></hx:ajaxRefreshSubmit>
<h:commandButton id="addNewAddr" type="button" action="#{pc_AdContentCaptureView.doButton2Action}" value="New">
<hx:behavior event="onclick" id="behavior2"
behaviorAction="get;get"
targetAction="addressGroup;summaryGroup"></hx:behavior>
</h:commandButton>
If we are mentioning more than one targetAction's then we should mention the same numbr of behaviourActions. And also, only the first targetAction needs to be sumbitted to refresh the panel addressGroup, the other just needs to be refreshed to update the summaryGroup panel so the change of ajax request from submit to refresh.
Hope this helps to somebody over there.
- Veera