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

rich:editor is integratet in a rich:modalPanel under browser ie7 everything works fine under firefox the rich:editor is dead

    XMLWordPrintable

    Details

      Description

      <rich:dataTable id="errorTable" value="#

      {errorBean.errorList}

      " var="row" ajaxKeys="#

      {errorBean.rowsToUpdate}

      "
      style="width:500px" first="0" rows="40" width="100%">
      <rich:column headerClass="header" footerClass="footer" id="c1">
      <f:facet name="header">
      <h:outputText value="Key"></h:outputText>
      </f:facet>
      <f:facet name="footer">
      <h:outputText value="Key"></h:outputText>
      ......

      <a4j:commandButton value="edit" onclick="Richfaces.showModalPanel('myPanel');" reRender="editErrorMessage">
      <f:setPropertyActionListener value="#

      {row}

      " target="#

      {errorBean.selectedErrorRow}

      "/>
      </a4j:commandButton>
      <f:facet name="footer">
      <h:outputText value="Edit"></h:outputText>
      </f:facet>
      </rich:column>
      </rich:dataTable>
      </h:form>
      <rich:modalPanel id="myPanel">
      <f:facet name="header">Edit</f:facet>
      <a4j:keepAlive beanName="errorBean"/>
      <h:form id="editErrorMessage">
      <h:panelGrid id="editErrorMessage" columns="2">
      <h:outputText value="Error Message:" />
      <rich:editor value="#

      {errorBean.selectedErrorRow.value}

      " useSeamText="false" width="100" height="50"></rich:editor>
      </h:panelGrid>
      <h:panelGrid columns="2">
      <a4j:commandButton value="Close"
      onclick="Richfaces.hideModalPanel('myPanel');" />
      <a4j:commandButton value="Save"
      actionListener="#

      {errorBean.updateErrorText}

      "
      oncomplete="Richfaces.hideModalPanel('myPanel');"
      reRender="errorTable"
      />
      </h:panelGrid>
      </h:form>
      </rich:modalPanel>

      This ModalPanel.xhml works fine under IE 6 but under firefox 3.0.11 the rich:editor is dead.

      Firefox Error Message:
      Fehler: t.win.document is null
      Quelldatei: http://localhost:8080/bt-ibe-prototype/a4j/g/3_3_1.GAscripts/tiny_mce/tiny_mce_src.js.jsf
      Row: 331

      Row: 331 says:
      r=isIE?t.win.document.body.createTextRange():t.win.document.createRange();return r;},setRng:function(r){var s;if(!isIE){s=this.getSel();if(s){s.removeAllRanges();s.addRange(r);}}else{try

      {r.select();}

      catch(ex){}}},setNode:function

      {var t=this;t.setContent(t.dom.getOuterHTML(n));return n;}

      ,getNode:function(){var t=this,r=t.getRng(),s=t.getSel(),e;if(!isIE){if(!r)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                dietmar.steger Dietmar Steger
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: