Sometimes a4j:support ignores the reRender attr?
dxxvi Sep 10, 2008 12:07 PMI'm using 3.2.1.GA. This is my code
<h:panelGroup rendered="#{empty medicationModel.workingMedication.addOrDecline}"> <ifx:freePanel theme="subpanel3" width="593" height="10"> <h:panelGrid style="margin: 0 auto;"> <h:panelGrid style="margin: 0 auto;"> <h:outputText style="font-weight: bold; font-size: 14px;" value="Would you like to add or decline a medication?" /> </h:panelGrid> <ifx:spacer height="5" /> <ifx:freePanel width="460" height="10" theme="subpanel5"> <h:panelGrid style="margin: 0 auto;"> <rich:spacer height="5" /> <h:selectOneRadio value="#{medicationModel.workingMedication.addOrDecline}" layout="lineDirection"> <a4j:support event="onclick" reRender="medicationAddDeclineButtonBox123" oncomplete="alert('hi');"/> <f:selectItem itemValue="true" itemLabel="Add Medication" /> <f:selectItem itemValue="false" itemLabel="Decline Medication" /> </h:selectOneRadio> <rich:spacer height="5" /> </h:panelGrid> </ifx:freePanel> <ifx:spacer height="10" /> <h:panelGroup layout="block" style="border: none;" id="medicationAddDeclineButtonBox"> <ifx:spacer width="155" float="left" /> <a4j:commandLink action="#{medicationModel.cancelMedication}" immediate="true" styleClass="button" reRender="D_Form:directionList, D_Form:selectedDirectionContent" onmouseup="this.blur();"> <h:outputText value="Cancel" style="border: none;" /> </a4j:commandLink> <ifx:spacer width="5" float="left" /> <a4j:commandLink action="#{medicationModel.addOrDeclineMedication}" styleClass="button#{medicationModel.readyToGoNext ? '' : 'Disabled'}" reRender="directionList, selectedDirectionContent" onmouseup="this.blur();"> <h:outputText value="Next" style="border: none;" /> </a4j:commandLink> <ifx:clear /> </h:panelGroup> </h:panelGrid> </ifx:freePanel> </h:panelGroup>
All the ifx tags are rendered to <h:panelGroup layout="block" style="..." styleClass="...". That block of code is inside an a4j:form.
I have some other places where the reRender in a4j:support works correctly, but in this case (a4j:support for a h:selectOneRadio) it is ignored (you can see that I put a non-existing id in the reRender attribute and no error messages were printed out). If I use action attribute for that a4j:support, I can put a breakpoint in that method (i.e. it seems to work normally).
Did I miss anything here?