[richfaces-issues] [JBoss JIRA] (RF-12276) script tags has been rendered in the wrong sequence

Christian Werner (JIRA) jira-events at lists.jboss.org
Wed May 23 04:05:18 EDT 2012


    [ https://issues.jboss.org/browse/RF-12276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694963#comment-12694963 ] 

Christian Werner edited comment on RF-12276 at 5/23/12 4:04 AM:
----------------------------------------------------------------

Master template

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en" lang="en" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
  xmlns:ecg="http://www.ecomradegroup.de/tags" xmlns:cmp="http://java.sun.com/jsf/composite/components" xmlns:topas="http://www.ecomradegroup.de/topas">

<f:view contentType="text/html" encoding="UTF-8">
  <h:head>
    <title>
      <h:outputText value="WebSeed®&#160;-&#160;" />
      <ui:insert name="moduleTitle">
        <h:outputText value="Untitled Module" />
      </ui:insert>
    </title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <base
      href="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.requestContextPath}/" />
    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <h:outputText escape="false"
      value="&lt;!--[if lte IE 7]&gt;&lt;style type='text/css'&gt;@import url(css/patches/patch_my_layout_ie7.css);&lt;/style&gt;&lt;![endif]--&gt;" />
    <h:outputText escape="false"
      value="&lt;!--[if gte IE 8]&gt;&lt;style type='text/css'&gt;@import url(css/patches/patch_my_layout_ie8.css);&lt;/style&gt;&lt;![endif]--&gt;" />
    <h:outputText escape="false"
      value="&lt;!--[if lte IE 8]&gt;&lt;script language='javascript' type='text/javascript' src='js/patches/canvas_patch_for_ie8.js';&lt;/script&gt;&lt;![endif]--&gt;" />
    <h:outputScript library="script" name="noreturn.js" />
    <h:outputStylesheet library="styles" name="layout.css" />
    <link rel="stylesheet" type="text/css" href="#{resource['styles.print:print.css']}" media="print" />
    <ui:insert name="headSupplemental" />
  </h:head>

  <!-- use this section to define view parameters -->
  <ui:insert name="viewParameter" />

  <ui:insert name="body">
    <h:body>
      <div id="page_margins">
        <div id="page">
          <div id="header">
            <div id="header_inner">
              <div id="topnav">
                <ui:include src="/jsp/share/header.xhtml" />
              </div>
            </div>
          </div>
          <h:form id="navigation">
            <div id="nav">
              <ecg:mainNavigation />
            </div>
          </h:form>
          <div id="main">
            <ui:insert name="content">
              <h:outputText value="No content found" />
            </ui:insert>
          </div>
          <div id="footer">
            <ui:include src="/jsp/share/footer.xhtml" />
          </div>
        </div>
      </div>
    </h:body>
  </ui:insert>
  <script type="text/javascript">
    window.myfaces = window.myfaces || {};
    myfaces.config = myfaces.config || {};
    myfaces.config.no_portlet_env = true;
  </script>
</f:view>
</html>
{noformat}
                
      was (Author: christianwerner):
    Master template

{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en" lang="en" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  xmlns:t="http://myfaces.apache.org/tomahawk" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"
  xmlns:ecg="http://www.ecomradegroup.de/tags" xmlns:cmp="http://java.sun.com/jsf/composite/components" xmlns:topas="http://www.ecomradegroup.de/topas">

<f:view contentType="text/html" encoding="UTF-8">
  <h:head>
    <title>
      <h:outputText value="WebSeed®&#160;-&#160;" />
      <ui:insert name="moduleTitle">
        <h:outputText value="Untitled Module" />
      </ui:insert>
    </title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <base
      href="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.requestContextPath}/" />
    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <h:outputText escape="false"
      value="&lt;!--[if lte IE 7]&gt;&lt;style type='text/css'&gt;@import url(css/patches/patch_my_layout_ie7.css);&lt;/style&gt;&lt;![endif]--&gt;" />
    <h:outputText escape="false"
      value="&lt;!--[if gte IE 8]&gt;&lt;style type='text/css'&gt;@import url(css/patches/patch_my_layout_ie8.css);&lt;/style&gt;&lt;![endif]--&gt;" />
    <h:outputText escape="false"
      value="&lt;!--[if lte IE 8]&gt;&lt;script language='javascript' type='text/javascript' src='js/patches/canvas_patch_for_ie8.js';&lt;/script&gt;&lt;![endif]--&gt;" />
    <h:outputScript library="script" name="noreturn.js" />
    <h:outputStylesheet library="styles" name="layout.css" />
    <link rel="stylesheet" type="text/css" href="#{resource['styles.print:print.css']}" media="print" />
    <ui:insert name="headSupplemental" />
  </h:head>

  <!-- use this section to define view parameters -->
  <ui:insert name="viewParameter" />

  <ui:insert name="body">
    <h:body>
      <div id="page_margins">
        <div id="page">
          <div id="header">
            <div id="header_inner">
              <div id="topnav">
                <ui:include src="/jsp/share/header.xhtml" />
              </div>
            </div>
          </div>
          <h:form id="navigation">
            <div id="nav">
              <ecg:mainNavigation />
            </div>
          </h:form>
          <div id="main">
            <ui:insert name="content">
              <h:outputText value="No content found" />
            </ui:insert>
          </div>
          <div id="footer">
            <ui:include src="/jsp/share/footer.xhtml" />
          </div>
        </div>
      </div>
    </h:body>
  </ui:insert>
  <script type="text/javascript">
			window.myfaces = window.myfaces || {};
			myfaces.config = myfaces.config || {};
			myfaces.config.no_portlet_env = true;
		</script>
</f:view>
</html>
{noformat}
                  
> script tags has been rendered in the wrong sequence
> ---------------------------------------------------
>
>                 Key: RF-12276
>                 URL: https://issues.jboss.org/browse/RF-12276
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.2.2.Final
>         Environment: MyFaces 2.1.7, Tomcat 6.0.35
>            Reporter: Christian Werner
>              Labels: waiting_on_user
>
> This bug was affected in IE8, works with Firefox
> After submit a form (using the action method of commandButton in a popup panel), appear in various javascript errors on IE8:
> {noformat}
> Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
> Zeitstempel: Tue, 22 May 2012 13:16:54 UTC
> Meldung: 'jQuery' ist undefiniert
> Zeile: 3
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/javax.faces.resource/richfaces-utils.js.jsf?conversationContext=1
> Meldung: 'jQuery' ist undefiniert
> Zeile: 1
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/javax.faces.resource/AutocompleteBase.js.jsf?ln=org.richfaces&conversationContext=1
> Meldung: 'jQuery' ist undefiniert
> Zeile: 1
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/javax.faces.resource/Autocomplete.js.jsf?ln=org.richfaces&conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 189
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 193
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 197
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 201
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 205
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 209
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 213
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 217
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 221
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> Meldung: Objekt erwartet
> Zeile: 225
> Zeichen: 1
> Code: 0
> URI: http://christian:8080/webseed.ui/jsp/propagation/propagations.jsf?conversationContext=1
> {noformat}
> A couple of javascripts of richfaces components (ie. autocomplete.js) are rendered before the jquery script in the DOM. The autocomplete component works then no longer in IE8.
> It then looks like this:
> {noformat}
> <link rel="stylesheet" type="text/css" href="/webseed.ui/javax.faces.resource/print.css.jsf?ln=styles.print" media="print" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-utils.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-selection.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/AutocompleteBase.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/Autocomplete.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/Autocomplete.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/jsf.js.jsf?ln=javax.faces&amp;stage=Development&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/jquery.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-queue.js.jsf?conversationContext=1">
> {noformat}
> The normal output looks like this. Comically affected are the scripts at the end to find. Coincidence?
> {noformat}
> <link rel="stylesheet" type="text/css" href="/webseed.ui/javax.faces.resource/print.css.jsf?ln=styles.print" media="print" /><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/javax.faces.resource/layout.css.jsf?ln=styles&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/jsf.js.jsf?ln=javax.faces&amp;stage=Development&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/jquery.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-queue.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-base-component.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/status.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-event.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/popupPanel.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/popupPanelBorders.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/popupPanelSizer.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/popupPanel.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/component-control.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/togglePanel.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/tabPanel.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/tabPanel.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/togglePanelItem.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/tab.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/poll.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/toolbar.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/toolbar.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/jquery.position.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/popup.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/menuKeyNavigation.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/menu-base.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/menu.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/dropdownmenu.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/menuitem.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/message.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/msg.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/jquery.hotkeys.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/hotkey.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/collapsiblePanel.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/collapsiblePanelItem.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/icons.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/collapsiblePanel.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/panel.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/datatable.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/datatable.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/tooltip.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/tooltip.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/datascroller.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/datascroller.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><link rel="stylesheet" media="screen" type="text/css" href="/webseed.ui/rfRes/list.ecss.jsf?db=eAHrmrY!HgAFywI!&amp;ln=org.richfaces&amp;conversationContext=1" /><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-utils.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/richfaces-selection.js.jsf?conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/AutocompleteBase.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script><script type="text/javascript" src="/webseed.ui/javax.faces.resource/Autocomplete.js.jsf?ln=org.richfaces&amp;conversationContext=1"><!--
>  
> //--></script>
> {noformat}
> Nice greetings,
> Christian

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list