4 Replies Latest reply on Dec 4, 2008 6:22 AM by demetrio812

    a4j:support bug with IE?

    demetrio812 Apprentice

      Hi,
      I have this piece of code:

      <h:form>
       <h:selectOneRadio value="#{orderHelper.tipoUtenteOrdine}" layout="pageDirection">
       <f:selectItem itemValue="L" itemLabel="1" />
       <f:selectItem itemValue="R" itemLabel="2" />
       <f:selectItem itemValue="A" itemLabel="3" />
       <a4j:support event="onchange" reRender="optionPanel"></a4j:support>
       </h:selectOneRadio>
      </h:form>
      <h:panelGrid id="optionPanel" columns="1" width="100%" cellpadding="0" cellspacing="0">
       <s:div rendered="#{orderHelper.tipoUtenteOrdine=='L'}">
       1
       </s:div>
       <s:div rendered="#{orderHelper.tipoUtenteOrdine=='R'}">
       2
       </s:div>
       <s:div rendered="#{orderHelper.tipoUtenteOrdine=='A'}">
       3
       </s:div>
      </h:panelGrid>
      


      It works fine with safari and firefox (when I click the "1" checkbox it shows the "1" div, etc.) but with IE it gives problems: I click on "1" checkbox and nothing happens, if I click in the panelgrid area it shows, or if I click on "2" checkbox it shows the "1" div, then I click on "3" checkbox and it shows the "2" div, like if it first reRender and then update the value.

      It's a a4j:support with h:selectOneRadio related bug because if I use a4j:commandButton or a4j:commandLink it works, also if I use "onclick" instead of "onchange" it works good on the 3 browsers.

      Is it a bug?

      Thanks

      Demetrio

      P.S.: the code is inserted in a page that use facelets, and I'm seeing another bug that happen only on IE during reRender of a s:decorate tag, I'll tell you later when I discover more. Thanks.