-
1. Re: rich:editor don´t work
gedgeck Apr 9, 2012 10:58 AM (in response to franciscoafdez)Try to change scope for bean. I had same problem while using @ViewScoped and changing to @SessionScoped resolve this problem.
-
2. Re: rich:editor don´t work
franciscoafdez Apr 10, 2012 11:51 AM (in response to gedgeck)Thanks Yuriy but change the scope didn´t work for me... I tried to use the application example for richfaces 4.2 with maven (
) then I add the example page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:editor id="jey"
value="#{richBean.name}" />
</ui:composition>
and I had the same problem..(with @ViewScoped and with @SessionScoped ) it´s only appears one simple textarea.. I also noticed that rich:editor didn´t appears in a richfaces showcase for 4.x (http://richfaces-showcase.appspot.com/).
Do you have a simple project example that works with richfaces 4.2??
-
3. Re: rich:editor don´t work
jprats Jun 20, 2012 8:00 AM (in response to franciscoafdez)I know this is somewhat old but make sure you're using <h:body> and <h:head> tags on the main template.
-
4. Re: rich:editor don´t work
franciscoafdez Jun 20, 2012 11:20 AM (in response to jprats)Thannks a lot, this work for me... Muchas gracias.. me habia dado de cabezazos e incluso lo había apartado hace ya algún tiempo... de nuevo se hizo la luz..
-
5. Re: rich:editor don´t work
fulong13 Nov 3, 2012 9:52 AM (in response to franciscoafdez)Hello!
rich:editor doesn't work within my project.
I'm using multi-level templates.
Example code:
<h:body>
<ui:composition template="/WEB-INF/templates/DefaultTemplate.xhtml">
<ui:define name="content">
<h:form>
<rich:editor />
</h:form>
</ui:define>
</ui:composition>
</h:body>
In case DefaultTemplate.xhtml is the main template, everything is fine.
If this is a template one level below, I only get an empty textarea without any editor.
I'm using RF 4.2.2. Any ideas?
Thanks!
BR
-
6. Re: rich:editor don´t work
franciscoafdez Nov 4, 2012 3:31 AM (in response to fulong13)Be sure that you have only one <h:head> .. </h:head> and only one <h:body>...</h:body>, if you repeat this tags in your main template and in the low levels the rich:editor does not work.
-
7. Re: rich:editor don´t work
fulong13 Nov 4, 2012 6:12 AM (in response to franciscoafdez)That was the problem.
Thanks!