ICEfaces
  1. ICEfaces
  2. ICE-6660

Component value modified in onBlur/change not persisted to model when using singleSubmit

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Hide
        Ted Goddard added a comment -

        For this particular case, onkeyUp might be the place to put the case correction.

        Show
        Ted Goddard added a comment - For this particular case, onkeyUp might be the place to put the case correction.
        Hide
        Mircea Toma added a comment -

        The change described by Ted should fix the issue.

        Show
        Mircea Toma added a comment - The change described by Ted should fix the issue.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: