Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.1.1
-
Fix Version/s: EE-4.1.0.RC1, EE-4.1.0.GA, 4.2.BETA, 4.2
-
Component/s: MOBI-Components
-
Labels:None
-
Environment:ICEfaces 4 trunk r48638. Tomcat 7/8, FF 43, Chrome 50, IE 11.
-
Assignee Priority:P3
-
Affects:Compatibility/Configuration
Description
A mobi:flipswitch that does not use ace:ajax fails to update it's value. A browser console error is seen when toggling the flipswitch.
FF: TypeError: ice.ace is undefined
http://localhost:8080/flipswitch/javax.faces.resource/flipswitch.c.js.jsf?ln=org.icefaces.component.flipswitch&v=4_2_0_160418
Line 3
Chrome:
Uncaught TypeError: Cannot read property 'setResetValue' of undefinedmobi.flipswitch.init @ flipswitch.c.js.jsf?ln=org.icefaces.component.flipswitch&v=4_2_0_160418:3onclick @ flipswitchDynAttribute.jsf:1
This issue can be demonstrated using the QA flipswitch test app /flipswitchDynAttribute.jsf
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/flipswitch
To reproduce:
Load the application and open the browser console.
Select rendered the toggle the flipswitch, the console error is shown.
Press submit. The value does not update accordingly.
FF: TypeError: ice.ace is undefined
http://localhost:8080/flipswitch/javax.faces.resource/flipswitch.c.js.jsf?ln=org.icefaces.component.flipswitch&v=4_2_0_160418
Line 3
Chrome:
Uncaught TypeError: Cannot read property 'setResetValue' of undefinedmobi.flipswitch.init @ flipswitch.c.js.jsf?ln=org.icefaces.component.flipswitch&v=4_2_0_160418:3onclick @ flipswitchDynAttribute.jsf:1
This issue can be demonstrated using the QA flipswitch test app /flipswitchDynAttribute.jsf
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/flipswitch
To reproduce:
Load the application and open the browser console.
Select rendered the toggle the flipswitch, the console error is shown.
Press submit. The value does not update accordingly.
Verified ICEfaces EE-4.1.0 r48691. Tomcat 7/8, IE 11, 10, 9, 8, Chrome 50, FF 43.
Note** When using flipswitch with an ace:ajax tag you must initialize the value of the flipswitch in the backing bean if running the application on a Tomcat 8.x server, otherwise there will be a NPE. This is not an issue with Tomcat 7.x.
QA test app was updated accordingly.