7 Replies Latest reply on Oct 27, 2009 6:39 AM by thomasgo

    rich:editor not rendered when refreshing page with ajax

    thomasgo

      Hi,

      We are trying to use a <rich:editor> in our application but using <a4j:commandLink> to update the view in an ajax way results in the editor not being rendered.

      To clarify this a bit:

      We have a page with multiple includes, one of which is called "content".
      There is a navigation bean that sets the content area to the view with a specified name.

      A link is then defined as follows:

      <a4j:commandLink id="changeContentLink"
       actionListener="#{navigation.updateView}">
       <h:graphicImage value="/images/someicon.gif" />
       <f:param name="view" value="editorPage" />
      </a4j:commandLink>

      This works as far as the page navigation is concerned, i.e. when clicking the link, editorPage.xhtml is displayed in the content area and so are all standard components (like <h:outputText> and <h:inputText>).
      However, the <rich:editor> component is not rendered correctly: The corresponding html markup seems to exist at least partially but nothing shows up.

      Changing to <h:commandLink> the editor shows up, but now a full page refresh is performed.

      Is this a bug or am I missing something?

      Thanks in advance,

      Thomas