ICEfaces
  1. ICEfaces
  2. ICE-2124

PanelTabSet doesn't sync bound selectedIndex on tabChange events

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.2, 1.7DR#3, 1.7
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      win xp

      Description

      The PanelTabSet doesn't synchronize tabChange events with the selectedIndex valueBinding if there is one.

      suggested fix:

      Index: D:/Documents and Settings/pbreau/workspace/ICEfaces/component/src/com/icesoft/faces/component/paneltabset/PanelTabSet.java
      ===================================================================
      --- D:/Documents and Settings/pbreau/workspace/ICEfaces/component/src/com/icesoft/faces/component/paneltabset/PanelTabSet.java (revision 14824)
      +++ D:/Documents and Settings/pbreau/workspace/ICEfaces/component/src/com/icesoft/faces/component/paneltabset/PanelTabSet.java (working copy)
      @@ -279,6 +279,10 @@
                   TabChangeEvent tabChangeEvent = (TabChangeEvent) event;
                   if (tabChangeEvent.getComponent() == this) {
                       setSelectedIndex(tabChangeEvent.getNewTabIndex());
      + if( getValueBinding("selectedIndex") != null ){
      + getValueBinding("selectedIndex").setValue(this.getFacesContext(), Integer.valueOf(tabChangeEvent.getNewTabIndex()));
      + }
      +
                       //getFacesContext().renderResponse();
                   }
               }

        Issue Links

          Activity

          Philip Breau created issue -
          Ken Fyten made changes -
          Field Original Value New Value
          Fix Version/s 1.6.2 [ 10111 ]
          Assignee Priority P3
          Assignee Mark Collette [ mark.collette ]
          Michael Thiem made changes -
          Mark Collette made changes -
          Fix Version/s 1.7DR#3 [ 10112 ]
          Mark Collette made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Mark Collette made changes -
          Link This issue is duplicated by ICE-2187 [ ICE-2187 ]
          Ken Fyten made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Priority P3 P1
          Mark Collette made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          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:
              Philip Breau
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: