Foren
liferay-ui:input-editor error in facelet portlet
Rose Navas, geändert vor 9 Jahren.
liferay-ui:input-editor error in facelet portlet
New Member Beiträge: 12 Beitrittsdatum: 04.08.14 Neueste Beiträge
I put liferay-ui:input-editor in my JSF porlet. But when the component shows in page, appears this message:
var oldEditor = CKEDITOR.instances['A7976:CrearForo:j_idt14']; if (oldEditor) >{oldEditor.destroy(true);delete window['A7976:CrearForo:j_idt14'];} if (oldEditor){var customDataProcessorLoaded = true;}else{var customDataProcessorLoaded = false;}
Also, sometimes, not load the component if I refresh the page
I use liferay portal 6.0.6 with liferay faces 3.0.4 GA5 and primefaces
Anyone could help me?
Thanks in advanced
var oldEditor = CKEDITOR.instances['A7976:CrearForo:j_idt14']; if (oldEditor) >{oldEditor.destroy(true);delete window['A7976:CrearForo:j_idt14'];} if (oldEditor){var customDataProcessorLoaded = true;}else{var customDataProcessorLoaded = false;}
Also, sometimes, not load the component if I refresh the page
I use liferay portal 6.0.6 with liferay faces 3.0.4 GA5 and primefaces
Anyone could help me?
Thanks in advanced
Anhänge:
Neil Griffin, geändert vor 9 Jahren.
RE: liferay-ui:input-editor error in facelet portlet
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Rose,
I just tried a plain JSF2 portlet with liferay-ui:input-editor in Liferay 6.0.6 and Liferay Faces 3.0.4-ga5 and it worked fine.
If you use the liferay-ui:input-editor tag in a view that does not contain any PrimeFaces components, does it work?
Kind Regards,
Neil
I just tried a plain JSF2 portlet with liferay-ui:input-editor in Liferay 6.0.6 and Liferay Faces 3.0.4-ga5 and it worked fine.
If you use the liferay-ui:input-editor tag in a view that does not contain any PrimeFaces components, does it work?
Kind Regards,
Neil
Rose Navas, geändert vor 9 Jahren.
RE: liferay-ui:input-editor error in facelet portlet
New Member Beiträge: 12 Beitrittsdatum: 04.08.14 Neueste Beiträge
Hi Neil. No sir. Not working.
I did an example page as follows
I use the next libraries with JSF 2.1.21
commons-fileupload-1.2.2.jar
Liferay faces 3.0.4 GA5
commons-io-1.3.2.jar
commons-lang.jar
commons-logging-1.1.1.jar
portal-service-6.0.6.jar
util-bridges.jar
util-java.jar
util-taglib-6.0.6.jar
jboss-el-2.0.0.GA.jar
I put this param in web.xml:
<context-param>
<param-name>com.liferay.faces.portal.inlineInputEditor</param-name>
<param-value>true</param-value>
</context-param>
And I add the \liferay-ui\jsp\input-editor.jsp file in my resources folder because when I use the tag Listener in my web.xml, appears an error of TLD with skipEditorLoading parameter
I hope you understand me. My English its not good.
Thanks in advanced
Rose
I did an example page as follows
<!--?xml version='1.0' encoding='UTF-8' ?-->
<h:head>
<title>Facelet Title</title>
<h:outputscript library="js" name="traduccionCalendario.js" />
</h:head>
<h:body>
<h:outputstylesheet library="css" name="portletsMME.css" />
<h:form id="form">
<liferay-ui:input-editor value="#{canalRssBean.comments}" />
</h:form>
</h:body>
I use the next libraries with JSF 2.1.21
commons-fileupload-1.2.2.jar
Liferay faces 3.0.4 GA5
commons-io-1.3.2.jar
commons-lang.jar
commons-logging-1.1.1.jar
portal-service-6.0.6.jar
util-bridges.jar
util-java.jar
util-taglib-6.0.6.jar
jboss-el-2.0.0.GA.jar
I put this param in web.xml:
<context-param>
<param-name>com.liferay.faces.portal.inlineInputEditor</param-name>
<param-value>true</param-value>
</context-param>
And I add the \liferay-ui\jsp\input-editor.jsp file in my resources folder because when I use the tag Listener in my web.xml, appears an error of TLD with skipEditorLoading parameter
I hope you understand me. My English its not good.
Thanks in advanced
Rose
Neil Griffin, geändert vor 9 Jahren.
RE: liferay-ui:input-editor error in facelet portlet
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Rose,
Attached is a simple project that is working in Tomcat.
Kind Regards,
Neil
Attached is a simple project that is working in Tomcat.
Kind Regards,
Neil
Anhänge:
Rose Navas, geändert vor 9 Jahren.
RE: liferay-ui:input-editor error in facelet portlet
New Member Beiträge: 12 Beitrittsdatum: 04.08.14 Neueste Beiträge
Thanks a lot.
Neil Griffin, geändert vor 9 Jahren.
RE: liferay-ui:input-editor error in facelet portlet
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
You are quite welcome, and thanks for using Liferay Faces.