ICEfaces
  1. ICEfaces
  2. ICE-6298

icecore:singleSubmit not working in IE7 for h:selectOneMenu onchange events

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 3.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Discovered with the PortletFaces Bridge + Liferay 6.0.x but I don't think portals have anything to do with it. I could be wrong.
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      In order to workaround the problem, I had to manually add an onchange handler like this:

      <h:selectOneMenu id="fooId" immediate="true" onchange="ice.se(event, this)" required="true" value="#{fooBean.fooId}">
      <f:selectItem itemLabel="-- Select --" itemValue="" />
      <f:selectItems itemValue="#{foo.fooId}" itemLabel="#{foo.name}" value="#{listModelBean.fooList}"
      var="foo" />
      <f:valueChangeListener binding="#{backingBean.fooIdValueChangeListener}" />
      </h:selectOneMenu>

      The problem with the workaround is that I think two Ajax transactions fire instead of one. But I could be wrong on that.
      Show
      In order to workaround the problem, I had to manually add an onchange handler like this: <h:selectOneMenu id="fooId" immediate="true" onchange="ice.se(event, this)" required="true" value="#{fooBean.fooId}"> <f:selectItem itemLabel="-- Select --" itemValue="" /> <f:selectItems itemValue="#{foo.fooId}" itemLabel="#{foo.name}" value="#{listModelBean.fooList}" var="foo" /> <f:valueChangeListener binding="#{backingBean.fooIdValueChangeListener}" /> </h:selectOneMenu> The problem with the workaround is that I think two Ajax transactions fire instead of one. But I could be wrong on that.

      Description

      On Chrome and FireFox, when the user selects an f:selectItem from an h:selectOneMenu, the icecore:singleSubmit component causes form submission. But on IE8, the onchange event isn't getting intercepted by icecore:singleSubmit or something. Basically the form is not submitted until someone onblurs out of the h:selectOneMenu.

        Activity

        Hide
        Ted Goddard added a comment -

        Feel free to assign this back to me if there's no emergency, but I will not be able to look at it until September. Looks like it could be related to ICE-8449.

        Show
        Ted Goddard added a comment - Feel free to assign this back to me if there's no emergency, but I will not be able to look at it until September. Looks like it could be related to ICE-8449 .
        Hide
        Deryk Sinotte added a comment - - edited

        Look like some recent changes to the singleSubmit logic might have helped with this. With my testing I believe that it is resolved but if further testing still shows the problem we can re-open.

        Show
        Deryk Sinotte added a comment - - edited Look like some recent changes to the singleSubmit logic might have helped with this. With my testing I believe that it is resolved but if further testing still shows the problem we can re-open.

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Neil Griffin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: