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

          Stefan Zeller created issue -
          Stefan Zeller made changes -
          Field Original Value New Value
          Salesforce Case [50070000008n5Rw]
          Stefan Zeller made changes -
          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>

          Note: Switch partialSubmit is explicitely not wanted
          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
          Ken Fyten made changes -
          Link This issue depends on ICE-4461 [ ICE-4461 ]
          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.
          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.
          Stefan Zeller made changes -
          Assignee Ken Fyten [ ken.fyten ]
          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?
          Ken Fyten made changes -
          Fix Version/s 1.8.2 [ 10190 ]
          Assignee Ken Fyten [ ken.fyten ] Adnan Durrani [ adnan.durrani ]
          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?
          Adnan Durrani made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          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} "/>
          Adnan Durrani made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: