3 Replies Latest reply on Oct 21, 2009 6:08 AM by Sergey Morenets

    rich:editor not working correctly on a rich:modalPanel

    Antonio Gurisatti Newbie

      Hi,

      I have a simple rich:editor inside a rich:modalPanel. It is getting rendered correctly but i cant type anything in the edit area (cursor wont get in the editing area)

      I'm using Facelets and Richfaces 3.3.0.

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
      <rich:modalPanel id="planHistPup" minHeight="300" minWidth="450" >
       <f:facet name="header">
       <h:outputText value="#{msg['indicator.lblComments']}" />
       </f:facet>
       <f:facet name="controls">
       <h:graphicImage value="/imagenes/close.png" style="cursor:pointer"
       onclick="Richfaces.hideModalPanel('planHistPup')" />
       </f:facet>
       <h:form>
       <a4j:outputPanel id="planHistComments" layout="inline">
       <br/>
       <h:panelGrid columns="1" style="margin:0px auto;">
       <h:outputText value="#{msg['indicator.text4']}"/>
       <rich:editor id="editor" width="430" height="180"
       value="#{planIndicatorHistValueController.valueComments}" />
       </h:panelGrid>
       <br/>
       <h:panelGroup>
       <h:commandButton value="#{msg['common.continueBtn']}"
       actionListener="#{planIndicatorHistValueController.saveValueComments}"
       onclick="Richfaces.hideModalPanel('planHistPup')"></h:commandButton>
       <h:commandButton value="#{msg['common.cancelBtn']}"
       onclick="Richfaces.hideModalPanel('planHistPup')"></h:commandButton>
       </h:panelGroup>
       </a4j:outputPanel>
       </h:form>
      </rich:modalPanel>
      
      </ui:composition>


      Perhaps there is something wrong with my code?

      Thanks in advance for any help