IE javascript error - a4j:include, rich:modalPanel, h:form
----------------------------------------------------------
Key: RF-3964
URL: https://jira.jboss.org/jira/browse/RF-3964
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: richfaces 3.2.1, facelets, myfaces
Reporter: Jiri Pejchal
When I try to open modal panel 'select_image' I get unknown javascript error in
IE. In firefox it works correctly.
If I remove <h:form> from the modal panel in test2.xhtml it works in both IE
and firefox without javascript errors.
test1.xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:rich="http://richfaces.org/rich">
<html>
<head>
</head>
<body>
<a4j:log/>
<h:form>
<a4j:include id="testInclude" viewId="/html/test/test2.xhtml"
layout="none" />
<a4j:commandButton id="chooseMiniatureButton"
value="open"
reRender="select_image"
ajaxSingle="true"
oncomplete="Richfaces.showModalPanel('select_image')"/>
</h:form>
</body>
</html>
</f:view>
test2.xhtml:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:rich="http://richfaces.org/rich"
xmlns:fck="http://www.fck-faces.org/fck-faces">
<rich:modalPanel id="select_image" top="20" left="300"
minHeight="700" minWidth="795"
maxHeight="700" maxWidth="795"
zindex="2000">
<h:form>
<a4j:commandButton immediate="true"
value="close"
onclick="Richfaces.hideModalPanel('select_image')"/>
</h:form>
</rich:modalPanel>
</ui:composition>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues