-
1. Re: Ajax render of RichFaces 4.1.0 M1 rich:editor
bleathem Aug 18, 2011 3:08 PM (in response to spectotechnologies)1 of 1 people found this helpfulHi Alexandre,
Thanks for trying out the new editor component! I believe the rerender issue you are describing is a known problem, and is scheduled to be addressed for the M2 release. See:
https://issues.jboss.org/browse/RF-11230
If I've mis-interpreted the problem you are describing, please let me know.
Brian
-
2. Re: Ajax render of RichFaces 4.1.0 M1 rich:editor
spectotechnologies Aug 18, 2011 3:45 PM (in response to bleathem)Thank you Brian, good point I'll wait for this version. Keep doing that great work on this amazing framework!
Alex.
-
3. Re: Ajax render of RichFaces 4.1.0 M1 rich:editor
przemod Sep 9, 2011 3:17 AM (in response to spectotechnologies)Hi,
I used two builds of M2, one from 24/Aug/11 (day after issue RF-11230 had been resolved) and one from yesterday (08/Sep/11) and still there is a problem with rendering editor after AJAX action... It seems like editor is still caches and it's rendered after full page rendering so the AJAX action which updates just a part of the view does not init editor and it doesn't appear... Will it work on final M2 release?
Przemek
-
4. Re: Ajax render of RichFaces 4.1.0 M1 rich:editor
semubiz Dec 20, 2011 5:25 AM (in response to spectotechnologies)Works with RichFaces 4.1.0.Final. Yet there is still a bug: The rich:editor has to be rendered the first time the page is displayed. After that it can be hidden and shown with AJAX.
<h:selectOneMenu value="#{pageControllerBean.pageType}">
<f:selectItems value="#{pageControllerBean.pageTypes}" />
<a4j:ajax event="valueChange" render="editorPanel" execute="@this" />
</h:selectOneMenu>
<a4j:outputPanel id="editorPanel" layout="block">
<rich:editor rendered="#{pageControllerBean.htmlPage}" />
</a4j:outputPanel>
-
5. Re: Ajax render of RichFaces 4.1.0 M1 rich:editor
semubiz Feb 7, 2013 7:39 AM (in response to spectotechnologies)Conditional Ajax-Rerender of rich:editor still does not work (checked RF 4.2.3).
As a workaround, I added a dummy rich:editor which is not displayed, but initializes the CKEditor javascript. The other editor will be rendered conditionally as expected.
<!-- Dummy Editor added to initialize CKEditor-javascript on load. without this, the text or html editor won't be rendered after type change -->
<rich:editor id="dummyEditor" />
<!-- Hide the editor immediately -->
<rich:jQuery selector="#dummyEditor" query="hide()" />
<h:selectOneMenu value="#{pageControllerBean.pageType}">
<f:selectItems value="#{pageControllerBean.pageTypes}" />
<a4j:ajax event="valueChange" render="editorPanel" execute="@this" />
</h:selectOneMenu>
<a4j:outputPanel id="editorPanel" layout="block">
<rich:editor rendered="#{pageControllerBean.htmlPage}" />
</a4j:outputPanel>