Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-932

ModalPanel: js error activating by oncomplete

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      IE7

      Description

      <%@ 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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  nbelaevski Nick Belaevski
                  Reporter:
                  nbelaevski Nick Belaevski
                • Votes:
                  9 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: