ICEfaces
  1. ICEfaces
  2. ICE-1962

Using converters with ice:selectInputText

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1, 1.7DR#3
    • Fix Version/s: 1.7RC1, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Any

      Description

      When using converters with selectInputText, one starts typing something in the text box. Then, after a pause (1 second, I guess) whatever one has typed so far is sent to the server to be evaluated so that a popup list of possible matching values appears in the view. The problem is that whatever we have typed so far must be of the correct data type already, otherwise a conversion error is displayed. This doesn't represent a problem for numerical values, but it is a problem for date values. One has to type the date really fast to avoid getting a conversion error.

      For example, when using the standard DateTime converter, if I just type 'Jan' and make a pause, I will get a conversion error, and whatever I typed will be deleted, and I won't get the popup list of possible matching values.

      Something similar happens with the Boolean converter. If I take too long to type 'true' it will change the text to 'false'.

      This is the code I'm using in the jspx document:

          ...
          <ice:selectInputText id="testSelInpTxt"
                         converter="#{selInpTxtConvBean.selectedConverter}"
                         value="#{selInpTxtConvBean.value}"
          >
              <f:selectItems value="#{selInpTxtConvBean.valueList}" />
          </ice:selectInputText>
          <ice:message for="testSelInpTxt"/>
          ...

      The files can be found in the qa repo (qa/trunk/test/application/web/converter/selectinputtex.jspx)

        Issue Links

          Activity

          Arturo Zambrano created issue -
          Arturo Zambrano made changes -
          Field Original Value New Value
          Assignee Adnan Durrani [ adnan.durrani ]
          Ken Fyten made changes -
          Assignee Adnan Durrani [ adnan.durrani ]
          Michael Thiem made changes -
          Support Case References https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=4566
          Affects Version/s 1.7DR#3 [ 10112 ]
          Affects Version/s 1.6.1 [ 10070 ]
          Ken Fyten made changes -
          Assignee Yip Ng [ yip.ng ]
          Ken Fyten made changes -
          Fix Version/s 1.7 [ 10080 ]
          Ken Fyten made changes -
          Assignee Priority P1
          Ken Fyten made changes -
          Assignee Yip Ng [ yip.ng ] Mark Collette [ mark.collette ]
          Mark Collette made changes -
          Link This issue depends on ICE-2743 [ ICE-2743 ]
          Mark Collette made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 1.7RC1 [ 10123 ]
          Fix Version/s 1.7 [ 10080 ]
          Ken Fyten made changes -
          Fix Version/s 1.7 [ 10080 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P1
          Assignee Mark Collette [ mark.collette ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Arturo Zambrano
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: