[jboss-jira] [JBoss JIRA] Updated: (JBPORTAL-1246) Error while creating javascript includes using jboss-portlet.xml
Stephen Westbom (JIRA)
jira-events at lists.jboss.org
Fri Feb 9 16:15:30 EST 2007
[ http://jira.jboss.com/jira/browse/JBPORTAL-1246?page=all ]
Stephen Westbom updated JBPORTAL-1246:
--------------------------------------
Complexity: Low
Priority: Blocker (was: Major)
Looks like this bug was reported previously, What gives here?
JBPORTAL-1173
> Error while creating javascript includes using jboss-portlet.xml
> ----------------------------------------------------------------
>
> Key: JBPORTAL-1246
> URL: http://jira.jboss.com/jira/browse/JBPORTAL-1246
> Project: JBoss Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Portal Core
> Affects Versions: 2.6.Alpha2
> Environment: Windows XP
> Reporter: Stephen Westbom
> Assigned To: Julien Viet
> Priority: Blocker
>
> 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list