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

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [5007000000GAeRk]
        Tyler Johnson made changes -
        Attachment sc9892.war [ 12963 ]
        Ken Fyten made changes -
        Assignee Ted Goddard [ ted.goddard ]
        Ken Fyten made changes -
        Fix Version/s 2.1 [ 10241 ]
        Assignee Priority P3
        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.
        Ted Goddard made changes -
        Assignee Ted Goddard [ ted.goddard ] Mircea Toma [ mircea.toma ]
        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.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: