掲示板

liferay-ui:input-editor error in facelet portlet

9年前 に Rose Navas によって更新されました。

liferay-ui:input-editor error in facelet portlet

New Member 投稿: 12 参加年月日: 14/08/04 最新の投稿
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

添付ファイル:

thumbnail
9年前 に Neil Griffin によって更新されました。

RE: liferay-ui:input-editor error in facelet portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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
9年前 に Rose Navas によって更新されました。

RE: liferay-ui:input-editor error in facelet portlet

New Member 投稿: 12 参加年月日: 14/08/04 最新の投稿
Hi Neil. No sir. Not working.

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
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: liferay-ui:input-editor error in facelet portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Rose,

Attached is a simple project that is working in Tomcat.

Kind Regards,

Neil

添付ファイル:

9年前 に Rose Navas によって更新されました。

RE: liferay-ui:input-editor error in facelet portlet

New Member 投稿: 12 参加年月日: 14/08/04 最新の投稿
Thanks a lot.
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: liferay-ui:input-editor error in facelet portlet

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
You are quite welcome, and thanks for using Liferay Faces. emoticon