2 Replies Latest reply on Dec 6, 2010 10:49 AM by sjete

    Doctype unset after ajax redirect

    sjete
      Hi,

      I was instructed to take over a seam powered application and am currently delving into the depth of this framework therefore please excuse my question if it is a bit noobish.

      In the application mentioned, while changing the localeSelector, the user receives the content of another page via ajax. Strangely enough, the ajax response doesn't contain the doctype definition (but everything else needed), therefore the page renders wrong. Manually reloading the page will render the page correctly as the Doctype-definition is included in the main template. Therefore, I am searching for ways to make seam send the doctype-definition together with the rendered content.

      Wrong:
      <html id="document:html" lang="de">

      Correct:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html id="document:html" lang="de">


      Do you have any idea where to begin with investigation?

      My setup:
      - Seam 2.1.2.CR1
      - ICEfaces 1.8.0
      - JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)]

      Any feedback is greatly appreciated.

      Thanks for reading.