Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: EE-3.3.0.GA_P01, EE-3.3.0.GA_P02
-
Fix Version/s: None
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Mojarra or MyFaces
-
ICEsoft Forum Reference:
-
Workaround Exists:Yes
-
Workaround Description:Reference widgetVar from inside the containing form.
Description
The following test case results in a JS error on IE 7 or 8 on page load ("Object doesn't support this property.."):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="de" lang="de" xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:icecore="http://www.icefaces.org/icefaces/core"
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
<title></title>
</h:head>
<h:body>
<ace:dialog id="helpDialog" header="Help" widgetVar="helpDialog"
closable="true" modal="true" draggable="false" showEffect="clip"
hideEffect="fade" closeOnEscape="true" width="400" height="600">
<h:outputText value="Help Dialog" />
</ace:dialog>
<h:form id="form">
<ace:panel header="Test" closable="false" toggleable="false">
<h:commandLink immediate="true" value="> Dialog" onclick="helpDialog.show();" />
</ace:panel>
</h:form>
</h:body>
</html>
Moving the commandLink inside the form appears to correct the issue.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="de" lang="de" xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:icecore="http://www.icefaces.org/icefaces/core"
xmlns:ace="http://www.icefaces.org/icefaces/components"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<h:head>
<title></title>
</h:head>
<h:body>
<ace:dialog id="helpDialog" header="Help" widgetVar="helpDialog"
closable="true" modal="true" draggable="false" showEffect="clip"
hideEffect="fade" closeOnEscape="true" width="400" height="600">
<h:outputText value="Help Dialog" />
</ace:dialog>
<h:form id="form">
<ace:panel header="Test" closable="false" toggleable="false">
<h:commandLink immediate="true" value="> Dialog" onclick="helpDialog.show();" />
</ace:panel>
</h:form>
</h:body>
</html>
Moving the commandLink inside the form appears to correct the issue.
Issue Links
- depends on
-
ICE-9960 New general purpose ace:proxy component for ACE containers
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion