Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.0.0-EE-Beta1
-
Fix Version/s: 3.0
-
Component/s: Framework
-
Labels:None
-
Environment:-
-
Assignee Priority:P3
-
Workaround Exists:Yes
-
Workaround Description:For this particular use case, the value can be set toUpper in the backing bean.
Description
The user is setting the value of the component to upper case in the onBlur method like so:
<ice:inputText onblur="this.value=this.value.toUpperCase();" valueChangeListener="#{step1Bean.updateFirstName}" value="#{step1Bean.firstName}" />
They are using <icecore:singleSubmit />. When typing in a value and tabbing out of the field, the value is correctly converted on screen to upper case. However, the value in the backing bean is still lower case. Setting partialSubmit to true on the component correctly submits the value to backing bean as upper case.
It seems as if the value is being overwritten at some point in the lifecycle due to the single submit. I have tried both onblur and onchange with the same results.
<ice:inputText onblur="this.value=this.value.toUpperCase();" valueChangeListener="#{step1Bean.updateFirstName}" value="#{step1Bean.firstName}" />
They are using <icecore:singleSubmit />. When typing in a value and tabbing out of the field, the value is correctly converted on screen to upper case. However, the value in the backing bean is still lower case. Setting partialSubmit to true on the component correctly submits the value to backing bean as upper case.
It seems as if the value is being overwritten at some point in the lifecycle due to the single submit. I have tried both onblur and onchange with the same results.
For this particular case, onkeyUp might be the place to put the case correction.