9 Replies Latest reply on Nov 6, 2007 3:08 AM by dsleeper

    Facelets ui:include problems with richfaces/ajax4jsf

    dsleeper Newbie

      I'm now using:
      Facelets 1.1.13
      Richfaces 3.1.1
      Myfaces 1.1.5

      All in the same web application. Everything is working fine from a functionality perspective, but after upgrading from the previous ajax4jsf build (the release just before ajax4jsf and richfaces became one project) I have been having a huge problem with all my ui:include tags.

      All of subpages used in ui:include have these tags in them:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

      When rendering the result the facelets servlet now include those values for every ui:include and that ruins all the XHTML pages. I cannot have the pages render out multiple elements.

      Have anybody else experienced this problem? Is there a workaround? I thought the ui:include tag was supposed to strip the html and doctype declaration before rendering. At least that is what it did before. Is this a setting in richfaces/ajax4jsf configuration I need to change perhaps? I'm currently using this standard setup:



      <display-name>RichFaces Filter</display-name>

      <servlet-name>Faces Servlet</servlet-name>