ICEfaces
  1. ICEfaces
  2. ICE-4497

with onblur="iceSubmitPartial(form, this, event);" on inputtext focus behaves wrong

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      tomcat

      Description

      Consider an ice:inputText component with onblur="iceSubmitPartial(form, this, event);". When tabbing out of the component, the partial submit will be done, but the component gets the focus again.

      ---example---
      <ice:form id="myFormID">
      <ice:outputLabel value="input 1"/>
      <ice:inputText onblur="iceSubmitPartial(form, this, event);" value="#{mimacomBean.string}"/>
      <br/>
      <ice:outputLabel value="input 2"/>
      <ice:inputText />
      </ice:form>

      PS: Switch partialSubmit is explicitely not wanted
      PPS: Version 1.7.2 behaves right

        Issue Links

          Activity

          Hide
          Adnan Durrani added a comment -

          The focus needs to be cleared before submit. Its being done automatically when using partialSubmit. So if the onblur needs to be defined manually then the focus needs to be cleared as well. Changing the onblur as following would fix the problem.

          <ice:inputText onblur="setFocus('');iceSubmitPartial(form, this, event);" value="#

          {mimacomBean.string}

          "/>

          Show
          Adnan Durrani added a comment - The focus needs to be cleared before submit. Its being done automatically when using partialSubmit. So if the onblur needs to be defined manually then the focus needs to be cleared as well. Changing the onblur as following would fix the problem. <ice:inputText onblur="setFocus('');iceSubmitPartial(form, this, event);" value="# {mimacomBean.string} "/>
          Hide
          Adnan Durrani added a comment -

          Is it a browser specific or with all browsers?

          Show
          Adnan Durrani added a comment - Is it a browser specific or with all browsers?
          Hide
          Ken Fyten added a comment -

          This seems like you're just emulating partialSubmit=true. Why do you not want partialSubmt=true in this case?

          Show
          Ken Fyten added a comment - This seems like you're just emulating partialSubmit=true. Why do you not want partialSubmt=true in this case?
          Hide
          Adrian Gygax added a comment -

          I just tested this with 1.8.1 and it still doesn't work.

          Show
          Adrian Gygax added a comment - I just tested this with 1.8.1 and it still doesn't work.
          Hide
          Ken Fyten added a comment -

          We believe this issue should already be addressed by the fix for ICE-4461. Please retest to confirm.

          Show
          Ken Fyten added a comment - We believe this issue should already be addressed by the fix for ICE-4461 . Please retest to confirm.

            People

            • Assignee:
              Adnan Durrani
              Reporter:
              Stefan Zeller
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: