2 Replies Latest reply on Nov 30, 2007 10:35 AM by mping

    Custom Layout that forces Quirks Mode

    mping

      Hi all,

      Does JBoss Portal support quirks mode? I am thinking of creating a custom layout for my portlets only, and forcing the layout to work on quirksmode.

      Thanks,
      Miguel Ping

        • 1. Re: Custom Layout that forces Quirks Mode
          antoine_h

          As far as I know, portal does not support it specifically.

          but if you want to build your portal with it, you can.

          the layout is a good start : you can do whatever you want in it : it is built on html, jsp, etc...

          you 'll have not to use the original portlets provided.
          you'll have to adapt them, so they provide the proper html...
          if this adaptation is possible (not for the portlets that yet use some ajax, I guess...).

          this may be a lot of work...
          but entirely feasible.

          think that the JSR-168 and jboss portal allow to provide pages for WAP, ... so can be on Quirks Mode... just a question to adapt the content and the way it is provided to the client browser.

          • 2. Re: Custom Layout that forces Quirks Mode
            mping

            If anyone cares, I created a custom layout that renders the base portlets ok and is in quirks mode. This enables some DOM/Javascript features that are disabled in XHMTL or strict mode.

            This was done in Jboss Portal 2.6.2 AS 4.2.1.

            The only relevant changes are:
            - removing the doctype declaration from the layout jsp
            - forcing the header content on the layout jsp to have a height of 1px or so.