[richfaces-issues] [JBoss JIRA] Created: (RF-932) ModalPanel: js error activating by oncomplete
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Fri Sep 14 15:21:11 EDT 2007
ModalPanel: js error activating by oncomplete
---------------------------------------------
Key: RF-932
URL: http://jira.jboss.com/jira/browse/RF-932
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.0
Environment: IE7
Reporter: Nick Belaevski
Assigned To: Pavel Yaschenko
Fix For: 3.2.0
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function show() {
alert("Showing Model Dialog");
Richfaces.showModalPanel('msgPanel')
}
</script>
</head>
<body>
<f:view>
<a4j:status>
<f:facet name="start">
<f:verbatim><span class="loading">Working..</span></f:verbatim>
</f:facet>
</a4j:status>
<rich:modalPanel id="msgPanel" width="200" height="200">
<f:facet name="header">
<h:outputText value="Selected Message"/>
</f:facet>
<h:panelGroup id="msgPanel1">
<h:outputText value="#{testBean.selected}"/>
<button type="button" onclick="Richfaces.hideModalPanel('msgPanel')">Close</button>
</h:panelGroup>
</rich:modalPanel>
<h:form>
<rich:dataTable id="msgList" binding="#{testBean.table}" width="97%" value="#{testBean.messages}" var="msg">
<f:facet name="header">
<rich:columnGroup>
<h:column>
<h:outputText styleClass="headerText" value="Message"/>
</h:column>
</rich:columnGroup>
</f:facet>
<h:column>
<a4j:commandLink action="#{testBean.select}" value="#{msg}" reRender="msgPanel"
oncomplete="show();"/>
</h:column>
</rich:dataTable>
</h:form>
</f:view>
</body>
</html>
click link, JS error occurs: panel HTML element is found, but modalPanel property doesn't exist
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list