rich:editor and rich:fileUpload after dynamic ui:include display problem
timpii Apr 12, 2014 4:37 PMI am having the following issue with both the rich:editor and the rich:fileUpload after a dynamic ui:insert as follows:
<rich:tab >
<ui:include src="#{mbrAction.mbrCommunityAction.registrationTab}"/> // This is where the problem is
// <rich:fileUpload /> // Works fine here
//<ui:include src="/communities/contributor/compositions/contributorRegistration.xhtml" /> // works fine if page hard coded
</rich:tab
I have upgraded to richfaces 4.3.6, jsf 2.1.19, jboss as 7.1.1 and still have the problem. I have tried different versions of each with no luck.
The issue is that the first time I go through the include the rich:editor and the rich:fileUpload components incorrectly - see the attached files for both good and bad screen shots of each. I have looked at the responses coming back and can find no difference - again see the attachments for the responses as obtained via firebug. In my template I have the following to help the rich:editor:
<script>
window.CKEDITOR_BASEPATH = '#{request.contextPath}/org.richfaces.resources/javax.faces.resource/org.richfaces.ckeditor/';
</script>
So I can get the components to display properly if I first enter the page, get the bad display and then go back to the home page and navigate the selections back to the page. The second time through they display properly. I am assuming that somehow the first time through sets some css or javascript that the dynamic ui:include is stripping but honestly I can not figure out what is going on. Again if I hard code the include as indicated above it works fine.
Any help is appreciated. I am out of thoughts on how to fix it.
-
RichEditor-Bad.png 24.0 KB
-
RichEditor-Good.png 30.8 KB
-
RichFileUpload-Good.png 25.7 KB
-
RichFileUpPload-Bad.png 28.1 KB
-
RichEditor-Bad.odt 12.2 KB
-
RichEditor-Good.odt 12.2 KB
-
RichFileUpload-Bad.odt 13.2 KB
-
RichFileUpload-Good.odt 13.2 KB