2 Replies Latest reply on Apr 14, 2014 10:55 AM by Tim Snyder

    rich:editor and rich:fileUpload after dynamic ui:include display problem

    Tim Snyder Newbie

      I 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



      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:


        window.CKEDITOR_BASEPATH = '#{request.contextPath}/org.richfaces.resources/javax.faces.resource/org.richfaces.ckeditor/';



      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.