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.
please add the ace namespace to the test page so that the ace library is loaded to the page and retest.
xmlns:ace="http://www.icefaces.org/icefaces/components"
This ensures that the ace library/resources are available for the component. There is a built in dependency for this component on the ace library.