Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
---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
- depends on
-
ICE-4461 Current component focus is lost on input level update.
- Closed
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}"/>