1 Reply Latest reply on Jan 12, 2012 10:49 AM by defjef

    Rich Editor

    defjef

      I am using richfaces 4.1.

       

      I have a problem with the rich:editor.  When I developed my application (in netbeans glassfish 3.1) it all worked fine. When it was deployed the rich:Editor is not shown.

       

      However when i turn the compatibility mode on, the editor is shown. But this mode is not available in firefox and chrome, and it should not have to be.

       

      This is the code I use :

       

       

      <?xml version='1.0' ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:a4j="http://richfaces.org/a4j"
            xmlns:rich="http://richfaces.org/rich"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:c="http://java.sun.com/jsp/jstl/core">
          <h:head>
              <title>Facelet Title</title>
              <link type="text/css" rel="stylesheet" href="../css/default.css"/>
          </h:head>
          <h:body>
              <h:form id="referenceForm" >
      <!--            <rich:panel rendered="#{not empty site.message}">-->
                      <h:outputLabel rendered="#{not empty site.message}" style="font-weight: bold;font-size: 12; color: red;" value="#{site.message}">
                      </h:outputLabel>
      <!--            </rich:panel>-->
                      <table width="450">                    
                          <tr>
                              <td class="bold">Naam</td>
                              <td><h:inputText id="txtName" value="#{reference.name}"/></td>                    
                          </tr>
                          <tr>
                              <td class="bold" colspan="2">Omschrijving</td>
                          </tr>
          </table>
                                  <rich:editor id="txtReference" value="#{reference.content}" >
                                  </rich:editor>
          <table>
                          <tr>
                              <td colspan="2" align="right">                        
                                  <h:commandButton value="Referentie opgeven" action="#{reference.addReference}">
                                  </h:commandButton>
                              </td>
                          </tr>
                      </table>
              </h:form>
          </h:body>
      </html>
      
      

       

      Does anybody have an idea what i am doing wrong?