Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-4.1.0.GA, EE-3.3.0.GA_P04
-
Fix Version/s: 4.2, EE-3.3.0.GA_P05
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All
-
Assignee Priority:P2
-
Support Case References:Support Case #13909 - https://icesoft.my.salesforce.com/5007000001erxlx
-
Workaround Exists:Yes
-
Workaround Description:Use an ace:ajax tag and it's onStart attribute
Description
This was working with the EE 3.3.0 P02 but no longer seems to work on the recent ICEfaces 3 and 4 code bases.
-
Hide
- Case13909Example.war
- 10.08 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/lib/icefaces-ace.jar 6.41 MB
- WEB-INF/lib/icefaces.jar 695 kB
- WEB-INF/lib/javax.faces-2.2.14.jar 3.00 MB
- WEB-INF/web.xml 2 kB
- index.xhtml 0.5 kB
- welcomeICEfaces.xhtml 0.7 kB
-
Hide
- Case13909Example.zip
- 19 kB
- Arran Mccullough
-
- Case13909Example/build.xml 3 kB
- Case13909Example/.../ant-deploy.xml 2 kB
- Case13909Example/.../build-impl.xml 80 kB
- Case13909Example/.../genfiles.properties 0.5 kB
- Case13909Example/.../private.properties 0.6 kB
- Case13909Example/nbproject/.../private.xml 0.3 kB
- Case13909Example/.../project.properties 4 kB
- Case13909Example/nbproject/project.xml 0.9 kB
- Case13909Example/src/conf/MANIFEST.MF 0.0 kB
- Case13909Example/web/index.xhtml 0.5 kB
- Case13909Example/web/.../context.xml 0.1 kB
- Case13909Example/web/WEB-INF/web.xml 2 kB
- Case13909Example/.../welcomeICEfaces.xhtml 0.7 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Tested with ICEfaces 4 trunk, ee-3.3.0 maintenance branch r49711.
Some other pass-through attributes are also failing when tested with a js alert:
onclick
onkeydown
onfocus
Many pass-through attributes such as ondblclick, onkeypress, onmousexxx are functioning as expected.
A QA test application /ICE-11204 has been checked in at:
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/linkButton
The attached test case failed for me when used with EE 3.3.0 P02 libs. There was no js alert launched.
Support for onclick was added in ICE-7371
Removed the onclick and onkeydown from the list of excluded attributes as defined by the renderer. Modified renderer to append passthrough attribute values to the attributes intrinsically used by the component (such as onfocus and onmouseover).
Tested with ICEfaces 4 trunk, ee-3.3.0 maintenance branch r49785, Tomcat 8, MS edge, IE 11, 10, 8, FF 47, Chrome 55.
In all browsers the onclick function is working properly.
There were some other issues found when using Chrome and MS edge:
Chrome - After using the onfocus linkButton the js alert popup continually launches after being dismissed.
MS Edge - After using any of the following once: onmousemove, onmouseover, onfocus, no further js alerts are seen from any other actions taken on the test page.
This was tested with /ICE-11204.jsf found at:
http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Nightly/linkButton
Chrome - After using the onfocus linkButton the js alert popup continually launches after being dismissed.
When the popup is closed the focus is put back onto the linkButton which will open again the popup, and so on. You can modify the event handler like this to avoid entering the loop:
<ace:linkButton onfocus="alert('..........'); window.document.body.focus();" ..../>
Modified test case to stop using alert() function which interferes with the focus, key, and mouse events in MS Edge.
Verified ICEfaces 4 trunk, ee-3.3.0 maintenance branch r49814, Tomcat 8, MS edge, IE 11, 10, 8, 7, FF 47, Chrome 55.
Attached test case that shows this issue.
Steps: