Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:win xp
-
ICEsoft Forum Reference:
-
Workaround Exists:Yes
-
Workaround Description:use a tabChangeListener to update the selectedIndex bean setter manually.
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();
}
}
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
- is duplicated by
-
ICE-2187 panelSeries/dataTable bug - tab selection in one row automatically selects the same tab in other rows
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion