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.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Judy Guglielmin [ judy.guglielmin ] | |
| Fix Version/s | EE-4.1.0.GA [ 12171 ] | |
| Assignee Priority | P3 [ 10012 ] |
| Affects | Compatibility/Configuration [ 10002 ] |
| Fix Version/s | EE-4.1.0.BETA [ 13072 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #48688 | Tue May 03 12:35:26 MDT 2016 | judy.guglielmin | |
| Files Changed | ||||
MODIFY
/icefaces4/trunk/icefaces/mobi/component/resources/org.icefaces.component.flipswitch/flipswitch.js
|
| Fix Version/s | 4.2.BETA [ 13091 ] | |
| Fix Version/s | 4.2 [ 12870 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |

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.