This content has been marked as final.
Show 4 replies
-
1. Re: rich:editor inside rich:popupPanel
michpetrov Dec 8, 2014 5:13 AM (in response to strannik_2011)1 of 1 people found this helpfulHi,
I've tried this simple code and it works:
<h:form id="form"> <rich:popupPanel header="Popup" id="popup"> <rich:editor /> </rich:popupPanel> <a4j:commandLink value="Click" execute="@this" onclick="#{rich:component('popup')}.show()" /> </h:form>
Are you getting any errors in the console?
-
2. Re: rich:editor inside rich:popupPanel
strannik_2011 Dec 9, 2014 10:29 PM (in response to michpetrov)Hi, Michal
Yes, that sample works. However in my popupPanel I have more complex case where content is rendered dynamically and
rich:editor is inside separate XHTMLpage:
<c:if test="#{!empty presentationBean.page}"> <a4j:outputPanel> <ui:include src="dialog/#{presentationBean.page}.xhtml" /> </a4j:outputPanel> </c:if> -
3. Re: rich:editor inside rich:popupPanel
michpetrov Dec 10, 2014 3:39 AM (in response to strannik_2011)Ah okay, but does that fail only in a popupPanel?
There's an issue with the way JSF loads resources which affects the editor, try including <rich:editor rendered="false"> on your main page, that will force JSF to include the resources.
-
4. Re: rich:editor inside rich:popupPanel
strannik_2011 Dec 10, 2014 5:24 AM (in response to michpetrov)Thank you, Michal.
I will try that.