Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.7Beta1
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      Interaction between programmer and tester, about the selectInputText component:

      P: Have the selectInputText inside of a dataTable. SelectInputText has a Map that has the rendered Strings of the select items, back to the SelectItem (which holds the original value). That way if you select an item, or exactly type it in, then SelectInputText.getSelectItem() should have a valid entry. Well, I doubt that works within a dataTable.

      T: SelectInputText.getSelectItem() will always get the one for the last component in the column

        Issue Links

          Activity

          Hide
          Markus Brüderl added a comment - - edited

          It is also not possible to create a datatable containing rows with selectInputText when the following conditions are met:

          <ice:dataTable id="tab" var="rowvar" value="#

          {myBean.someList}

          " ...>
          ...
          <ice:selectInputText id="ifield" width="150" value="#

          {rowvar.myLabel}

          " listVar="fieldItem"
          listValue="#

          {myBean.someSelectItemList}

          "
          valueChangeListener="#

          {myBean.valueChanged}

          ">
          <f:facet name="selectInputText">
          <ice:panelGrid columns="1">
          <ice:outputText id="otId" value="#

          {fieldItem.myLabel}

          " />
          </ice:panelGrid>
          </f:facet>
          </ice:selectInputText>
          ...
          </ice:dataTable>

          The Table iterates over a list L of objects X.
          For every row the selectInputText shall be prefilled with the value of String X.getMyLabel();
          The valueListener opens a list of SelectItems containing X as value and X.getMyLabel() as Label.

          Problem: the displayed value of each selecInputText is now bound to each other, if L contains multiple X with the same Description (of getMyLabel()).

          This results in updating all other selectInputText-rows containing the same description value. This also overwrites the currently typed OR selected value from the list making changes to the selectInputText-value impossible (except for the last row containing an equal value).

          Creating a table which displays a changeable N-M relation via selectInputText is therefore not possible, while a 1-N relation would work.

          Show
          Markus Brüderl added a comment - - edited It is also not possible to create a datatable containing rows with selectInputText when the following conditions are met: <ice:dataTable id="tab" var="rowvar" value="# {myBean.someList} " ...> ... <ice:selectInputText id="ifield" width="150" value="# {rowvar.myLabel} " listVar="fieldItem" listValue="# {myBean.someSelectItemList} " valueChangeListener="# {myBean.valueChanged} "> <f:facet name="selectInputText"> <ice:panelGrid columns="1"> <ice:outputText id="otId" value="# {fieldItem.myLabel} " /> </ice:panelGrid> </f:facet> </ice:selectInputText> ... </ice:dataTable> The Table iterates over a list L of objects X. For every row the selectInputText shall be prefilled with the value of String X.getMyLabel(); The valueListener opens a list of SelectItems containing X as value and X.getMyLabel() as Label. Problem: the displayed value of each selecInputText is now bound to each other, if L contains multiple X with the same Description (of getMyLabel()). This results in updating all other selectInputText-rows containing the same description value. This also overwrites the currently typed OR selected value from the list making changes to the selectInputText-value impossible (except for the last row containing an equal value). Creating a table which displays a changeable N-M relation via selectInputText is therefore not possible, while a 1-N relation would work.
          Hide
          zzzz8 zzzz8 added a comment -

          Is there any chance this issue will get fixed soon? I have a similar issue (selectInputText in panelSeries - UIData) that's essentially a near showstopper for me.

          Show
          zzzz8 zzzz8 added a comment - Is there any chance this issue will get fixed soon? I have a similar issue (selectInputText in panelSeries - UIData) that's essentially a near showstopper for me.
          Hide
          Mark Collette added a comment -

          Once we implement the strategy for ICE-5577, then we can replicate a similar solution for this component.

          Show
          Mark Collette added a comment - Once we implement the strategy for ICE-5577 , then we can replicate a similar solution for this component.
          Hide
          Ashwin Raghu added a comment -

          Jira hasn't been updated in awhile, wondering if any progress has been made? .

          -Thanks

          Show
          Ashwin Raghu added a comment - Jira hasn't been updated in awhile, wondering if any progress has been made? . -Thanks
          Hide
          Mark Collette added a comment -

          The duplicated jira shows the issue as being fixed in these two releases: 1.8.2-EE-GA_P02, 2.0.0. Try it out in one of them, and it should work.

          Show
          Mark Collette added a comment - The duplicated jira shows the issue as being fixed in these two releases: 1.8.2-EE-GA_P02, 2.0.0. Try it out in one of them, and it should work.
          Hide
          Ken Fyten added a comment -

          Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup.

          Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf

          If the issue persists with the current ICEfaces release, please create a new JIRA for it.

          Show
          Ken Fyten added a comment - Marking as Closed / Invalid as part of legacy ICEfaces ICE / Compat component JIRA cleanup. Note: This issue may be resolved in a newer ICEfaces release, available here: http://www.icesoft.org/java/downloads/icefaces-downloads.jsf If the issue persists with the current ICEfaces release, please create a new JIRA for it.

            People

            • Assignee:
              Unassigned
              Reporter:
              Mark Collette
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: