4 Replies Latest reply on Oct 2, 2007 10:58 AM by davidjoseph

    selectOneRadio and a:support

    davidjoseph

      I have the following code for a required radiobutton:

      <s:decorate id="holdingFarmacyDecorate" template="/edit.xhtml">
       <ui:define name="label">#{messages.holding_farmacy}</ui:define>
       <h:selectOneRadio id="holdingFarmacy" value="#{coach.offer.holdingFarmacy}" required="true">
       <f:selectItem itemValue="true" itemLabel="#{messages.yes}"/>
       <f:selectItem itemValue="false" itemLabel="#{messages.no}"/>
       <a:support event="onblur" reRender="holdingFarmacyDecorate" ajaxSingle="true" bypassUpdates="true" />
       </h:selectOneRadio>
       </s:decorate>


      When using a:support in this way, to change the value of the radio button to the other value, you always have to click twice, because the first time a4j seams to rerender the original value. Can someone explain this behaviour? Is there any workaround so that my validation still works.

      thx