-
1. Re: rich:editor not rendered when refreshing page with ajax
nbelaevski Oct 23, 2009 6:07 AM (in response to thomasgo)Hi Thomas,
Does this happen in webkit-based (Safari, Chrome) browsers only? What is RF version? Is rich:editor placed in rich:modalPanel? -
2. Re: rich:editor not rendered when refreshing page with ajax
thomasgo Oct 23, 2009 7:27 AM (in response to thomasgo)No, we're currently only developing for IE (7 and 8) and Firefox (3.x).
I personally tested the issue in IE 8 and FF 3.5
The setup is approximately the following:
Our main.xhtml:<!-- DOCTYPE ... --> <html ...> <body> <!-- other includes --> <div id="content"> <ui:insert name="content"> <!-- include a default page --> <ui:include src="/pages/content.xhtml" /> </ui:insert> </div> <!-- other includes --> </body> </html>
Our "editorPage" page:<!-- XML-Header... --> <ui:composition ...> <rich:panel> <h:form> <rich:editor id="editor" width="400" height="300" value=""> </rich:editor> </h:form> </rich:panel> </ui:composition>
When I click the link in another page the current "content" page is replaced with editorPage.xhtml.
As a side node: I ran another test on the IE and eventually the editor showed up and keeps showing. Even after clearing all of IE's caches that I have control of, the editor now shows up.
However, on a colleague's computer we ran another test in IE 8 and the editor didn't show up again. There we get a javascript error telling 'tinyMCE' is null in one of the javascript files. -
3. Re: rich:editor not rendered when refreshing page with ajax
nbelaevski Oct 23, 2009 8:19 AM (in response to thomasgo)When I click the link in another page the current "content" page is replaced with editorPage.xhtml.
Does this happen for AJAX or common requests?
What is RF version? -
4. Re: rich:editor not rendered when refreshing page with ajax
thomasgo Oct 23, 2009 9:55 AM (in response to thomasgo)Ah, sorry, forgot to mention the version: I'm using RichFaces 3.3.2.SR1 with JSF 1.2_12 and Facelets 1.1.14.
The replacement takes place in every case, i.e. with ajax and common requests. But only with ajax requests is the editor not rendered correctly. -
5. Re: rich:editor not rendered when refreshing page with ajax
thomasgo Oct 25, 2009 2:18 PM (in response to thomasgo)bump
-
6. Re: rich:editor not rendered when refreshing page with ajax
ilya_shaikovsky Oct 26, 2009 6:34 AM (in response to thomasgo)could be problem with tinyMCE scripts loading. try to add rich:editor component with rendered="false" to main template. Then scripts should be loaded fine.
-
7. Re: rich:editor not rendered when refreshing page with ajax
thomasgo Oct 27, 2009 6:39 AM (in response to thomasgo)That works, thanks.
It's not a very nice workaround but if there's no other way it'll be ok.
Seems that error was reported some time ago: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=152748
(Jira issue: https://jira.jboss.org/jira/browse/RF-6573)