Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-4.2.0.GA, EE-3.3.0.GA_P05
-
Fix Version/s: 4.3, EE-3.3.0.GA_P06
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ace dataTable reorder sort
-
Support Case References:Support Case 14242:- https://icesoft.my.salesforce.com/5000g00001oAefs
Description
Also, review the functionality of attributes for ace:dataTable:-
reorderableColumns :- boolean when true enables the dragging and dropping of the columns
columnOrdering:- required with reorderableColumns and is a list of Integers. Not sure why this is not within the component? Both are required for this functionality, but if there is no use-case for user interaction with this attribute in the component, then it should be within the component. As a minimum, it should be "@Required" if reoderableColumns attribute is true.
-
Hide
- ICEfacesTestCase ReorderableColumn.zip
- 59 kB
- Judy Guglielmin
-
- ICEfacesTestCase ReorderableColumn/.DS_Store 6 kB
- __MACOSX/.../._.DS_Store 0.2 kB
- ICEfacesTestCase ReorderableColumn/ICEfacesTestCaseViewState.iml 2 kB
- ICEfacesTestCase ReorderableColumn/pom.xml 2 kB
- ICEfacesTestCase ReorderableColumn/ICEfacesTestCase.iml 2 kB
- __MACOSX/.../._ICEfacesTestCase.iml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../ICEfacesTestCase_war.xml 0.3 kB
- __MACOSX/.../._ICEfacesTestCase_war.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../ICEfacesTestCase_war_exploded.xml 2 kB
- __MACOSX/.../._ICEfacesTestCase_war_exploded.xml 0.2 kB
- __MACOSX/.../._artifacts 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../encodings.xml 0.2 kB
- __MACOSX/.../._encodings.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../uiDesigner.xml 9 kB
- __MACOSX/.../._uiDesigner.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__commons_collections_commons_collections_3_2.xml 0.6 kB
- __MACOSX/.../._Maven__commons_collections_commons_collections_3_2.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__javax_servlet_javax_servlet_api_3_0_1.xml 0.6 kB
- __MACOSX/.../._Maven__javax_servlet_javax_servlet_api_3_0_1.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__com_sun_faces_jsf_api_2_1_29_04.xml 0.5 kB
- __MACOSX/.../._Maven__com_sun_faces_jsf_api_2_1_29_04.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__com_icesoft_icefaces_ee_icefaces_ee_ace_3_3_0_GA_P04.xml 0.6 kB
- __MACOSX/.../._Maven__com_icesoft_icefaces_ee_icefaces_ee_ace_3_3_0_GA_P04.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__commons_logging_commons_logging_1_1.xml 0.5 kB
- __MACOSX/.../._Maven__commons_logging_commons_logging_1_1.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__com_sun_faces_jsf_impl_2_1_29_04.xml 0.5 kB
- __MACOSX/.../._Maven__com_sun_faces_jsf_impl_2_1_29_04.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__commons_digester_commons_digester_1_8.xml 0.6 kB
- __MACOSX/.../._Maven__commons_digester_commons_digester_1_8.xml 0.2 kB
- ICEfacesTestCase ReorderableColumn/.../Maven__com_icesoft_icefaces_ee_icefaces_ee_compat_3_3_0_GA_P04.xml 0.7 kB
-
Hide
- SC14242.war
- 13.69 MB
- Judy Guglielmin
-
- META-INF/MANIFEST.MF 0.1 kB
- index.xhtml 1 kB
- WEB-INF/classes/TableObject.class 0.9 kB
- WEB-INF/classes/Main.class 2 kB
- WEB-INF/.../icefaces-ee-ace-3.3.0.GA_P05.jar 6.19 MB
- WEB-INF/lib/commons-logging-1.1.jar 52 kB
- WEB-INF/.../icefaces-ee-compat-3.3.0.GA_P05.jar 4.18 MB
- WEB-INF/lib/jsf-impl-2.1.29-04.jar 1.92 MB
- WEB-INF/lib/commons-digester-1.8.jar 140 kB
- WEB-INF/lib/commons-collections-3.2.jar 558 kB
- WEB-INF/lib/icepush-ee-3.3.0.GA_P05.jar 384 kB
- WEB-INF/lib/icefaces-ee-3.3.0.GA_P05.jar 638 kB
- WEB-INF/lib/commons-beanutils-1.8.0.jar 226 kB
- WEB-INF/lib/jsf-api-2.1.29-04.jar 622 kB
- WEB-INF/web.xml 0.8 kB
- META-INF/maven/.../pom.xml 2 kB
- META-INF/maven/.../pom.properties 0.1 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
test case source
r52099, r52100: added dynamic javascript call to setup reorderable columns again on sort requests (4.0 trunk and 3.3 EE maintenance branch)
Sort events trigger a dynamic update of the entire thead element, which causes the listeners associated with the reorderable columns functionality to be lost. So, as in other cases, a dynamic javascript call to re-apply these listeners is sent to the client on sort requests (if the table has this functionality enabled).
For the issue with the reset button. They would have to dynamically call the function to re-apply the reorderable columns behaviour in the client, from their own listener, since such request is not a sort request, which would trigger this dynamic javascript code to be sent to re-apply such behaviour.
In order to do this, follow these two steps:
1. import org.icefaces.util.JavaScriptRunner in the bean where the reset function is.
2. Add the following code at the end of the reset listener:
For ICEfaces 4:
JavaScriptRunner.runScript(context, "(function(){var table = ice.ace.instance('" + tableClientId + "');if(table) {table.setupResizableColumns(); table.setupReorderableColumns();}})();");
For ICEfaces 3:
JavaScriptRunner.runScript(context, "(function(){var table = window." + tableWidgetVar + ";if(table) {table.setupResizableColumns(); table.setupReorderableColumns();}})();");
Simply replace 'tableClientId' or 'tableWidgetVar' as appropriate.
Note that I couldn't actually reproduce the issue on the test case I was given, since the reset button (link, actually) didn't seem to work. It didn't reset the order.
test case to deploy to tomcat