Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-1246

Error while creating javascript includes using jboss-portlet.xml

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 2.6.Alpha2
    • Fix Version/s: 2.6.Beta1
    • Component/s: Portal Core
    • Labels:
      None
    • Environment:

      Windows XP

      Description

      If you include a js file using the jboss-portlet.xml css includes and js includes will get no closing elements or a close in the include element:

      The only change between the two entries is this:

      Entry with js includes
      <portlet>
      <portlet-name>ipotrak_1</portlet-name>
      <header-content>
      <link rel="stylesheet" type="text/css"
      href="/styles/research.css" media="screen" title="" />
      <link rel="stylesheet" type="text/css"
      href="/styles/ajax.css" media="screen" title="" />
      <script type="text/javascript" language="JavaScript"
      src="/javascript/validation.js" />
      <script type="text/javascript" language="javascript"
      src="/javascript/Selectbox/selectbox.js" />
      </header-content>
      </portlet>
      Entry without js includes:

      <portlet>
      <portlet-name>ipotrak_1</portlet-name>
      <header-content>
      <link rel="stylesheet" type="text/css"
      href="/styles/research.css" media="screen" title="" />
      <link rel="stylesheet" type="text/css"
      href="/styles/ajax.css" media="screen" title="" />
      </header-content>
      </portlet>

      With JS reference in jboss-portlet.xml this is the top of the generated page:

      <html xmlns="http://www.w3.org/1999/xhtml">
      â??â??â??â??â??
      <head>
      <title>JBoss Portal 2.6.0-ALPHA2</title>
      <meta http-equiv="Content-Type" content="text/html;">
      <!-- to correct the unsightly Flash of Unstyled Content. -->
      <script type="text/javascript"></script>
      <!-- inject the theme; default to the renaissance theme if nothing is selected for the portal or the page -->
      <link rel="stylesheet" type="text/css" id="main_css"
      href="/portal-core/themes/renaissance/portal_style.css">
      <link rel="shortcut icon"
      href="/portal-core/themes/renaissance/images/favicon.ico">
      <link rel="icon" type="image/gif"
      href="/portal-core/themes/renaissance/images/animated_favicon1.gif">
      <!-- insert header content that was possibly set by portlets on the page -->

      <link type="text/css" rel="stylesheet"
      href="/investmentportal/styles/research.css" media="screen">
      <link type="text/css" rel="stylesheet"
      href="/investmentportal/styles/ajax.css" media="screen">
      <script type="text/javascript"
      src="/investmentportal/javascript/validation.js">
      <script type='text/javascript' src='/investmentportal/javascript/Selectbox/selectbox.js' />

      </head>

      Without js reference in jboss-portal.xml:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <title>JBoss Portal 2.6.0-ALPHA2</title>
      <meta http-equiv="Content-Type" content="text/html;" />
      <!-- to correct the unsightly Flash of Unstyled Content. -->
      <script type="text/javascript"></script>
      <!-- inject the theme; default to the renaissance theme if nothing is selected for the portal or the page -->
      <link rel="stylesheet" type="text/css" id="main_css"
      href="/portal-core/themes/renaissance/portal_style.css" />
      <link rel="shortcut icon"
      href="/portal-core/themes/renaissance/images/favicon.ico" />
      <link rel="icon" type="image/gif"
      href="/portal-core/themes/renaissance/images/animated_favicon1.gif" />

      <!-- insert header content that was possibly set by portlets on the page -->
      <link type='text/css' rel='stylesheet'
      href='/investmentportal/styles/research.css' media='screen' />
      <link type='text/css' rel='stylesheet'
      href='/investmentportal/styles/ajax.css' media='screen' />

      </head>

      Notice all the elements are closed when no js is referenced in jboss-portlet.xml

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                julien1 julien1
                Reporter:
                swestbom Stephen Westbom
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: