0 Replies Latest reply on Feb 21, 2008 5:51 AM by Adi Katz

    Why ajax response contains more than asked for ?

    Adi Katz Novice

      When using a4j:support the response contains much more than the reRendered region. Things like static javascript libraries and css.
      Is there any reason for that ?

      Example of Ajax response:

      <?xml version="1.0"?>
      
      <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link type="text/css" rel="stylesheet"
      
       href="/jsf-easa/a4j_3_1_4.GAcss/toolBar.xcss/DATB/eAGLZKr5DAADWQHL.easap" /><link type="text/css" rel
      
      ="stylesheet" href="/jsf-easa/a4j_3_1_4.GAcss/dropdownmenu.xcss/DATB/eAGLZKr5DAADWQHL.easap" /><link
      
       type="text/css" rel="stylesheet" href="/jsf-easa/a4j_3_1_4.GAcss/menucomponents.xcss/DATB/eAGLZKr5DAADWQHL
      
      .easap" /><link type="text/css" rel="stylesheet" href="/jsf-easa/a4j_3_1_4.GAcss/tabPanel.xcss/DATB/eAGLZKr5DAADWQHL
      
      .easap" /><link type="text/css" rel="stylesheet" href="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit
      
      /html/css/modalPanel.xcss/DATB/eAGLZKr5DAADWQHL.easap" /><link type="text/css" rel="stylesheet" href
      
      ="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit/html/css/msg.css.easap" /><link type="text/css" rel="stylesheet"
      
       href="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit/html/css/msgs.css.easap" /><script type="text/javascript"
      
       src="/jsf-easa/a4j_3_1_4.GAorg.ajax4jsf.javascript.PrototypeScript.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg.ajax4jsf.javascript.AjaxScript
      
      .easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAscripts/menu.js.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit/html/scripts
      
      /utils.js.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg/ajax4jsf/javascript/scripts/form
      
      .js.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit/html/scripts
      
      /form.js.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg.ajax4jsf.javascript.ImageCacheScript
      
      .easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit/html/scripts
      
      /browser_info.js.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAscripts/tabPanel.js.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit/html/scripts
      
      /modalPanel.js.easap">
      
      </script><script type="text/javascript" src="/jsf-easa/a4j_3_1_4.GAorg/richfaces/renderkit/html/scripts
      
      /modalPanelBorders.js.easap">
      
      </script></head><body><span id="_inc_msg:_id12"><div id="_inc_msg:_msgs" style="display: none;"><input
      
       id="_inc_msg:_msgsOpenedState" name="_inc_msg:_msgsOpenedState" type="hidden" /><div class="rich-modalpanel"
      
       id="_inc_msg:_msgsContainer" style="position: absolute; display: none; z-index: 2000; background-color
      
      : inherit;"><div class="dr-mpnl-mask-div rich-mpnl-mask-div" id="_inc_msg:_msgsDiv" style="z-index: 1
      
      ;"></div><div class="dr-mpnl-mask-div rich-mpnl-mask-div" id="_inc_msg:_msgsCursorDiv" style="filter
      
      : alpha(opacity=1); z-index: -200"></div><div class="dr-mpnl-panel rich-mpnl_panel" id="_inc_msg:_msgsCDiv"
      
       style="width: 1px; height: 1px; z-index: 2;"><div class="dr-mpnl-shadow rich-mpnl-shadow" id="_inc_msg
      
      :_msgsShadowDiv" style="top: 4px; left: 4px; opacity:0.1; filter:alpha(opacity=10);"></div><table border
      
      ="0" cellpadding="0" cellspacing="0" id="_inc_msg:_msgsContentTable" style="position: absolute; z-index
      
      : 2; width: 200px; height: 100px; vertical-align:middle;"><tbody><tr><td class="dr-mpnl-pnl"><div class
      
      ="rich-mp-content" id="_inc_msg:_msgsContentDiv" style="overflow: hidden;"><a class="dr-mpnl-pnl-a" href
      
      ="#" id="_inc_msg:_msgsFirstHref">_</a><table border="0" cellpadding="0" cellspacing="0" style="height
      
      : 100%; width: 100%;"><tbody><tr style="height: 1%;"><td class="dr-mpnl-header rich-mpnl-header-cell"
      
      ><div class="dr-mpnl-pnl-text rich-mpnl-text rich-mpnl-controls" style="float:right; padding-top: 3px
      
      ; padding-right: 3px"><img src="/jsf-easa/images/modal/close.png" onclick="Richfaces.hideModalPanel('_msgs'
      
      )" alt="" /></div><div class="dr-mpnl-pnl-text dr-mpnl-pnl-h rich-mpnl-text rich-mpnl-header" id="_inc_msg
      
      :_msgsHeader" style="white-space: nowrap;">Messages</div></td></tr><tr style="height: 99%"><td class
      
      ="dr-mpnl-pnl-b rich-mpnl-body" valign="top"><dl id="_inc_msg:_hmsgs" class="rich-messages" style="display
      
      : none; null"><dt><span class="rich-messages-label"></span></dt></dl><a class="dr-mpnl-pnl-a" href="
      
      #" id="_inc_msg:_msgsLastHref">_</a></td></tr></tbody></table></div></td></tr></tbody></table></div>
      
      <script type="text/javascript">//<![CDATA[
      
      new ModalPanel('_inc_msg:_msgs',
      
       {
      
       width: -1,
      
       height: -1,
      
       minWidth: 200,
      
       minHeight: 100,
      
       resizeable: false,
      
       moveable: true,
      
       left: "auto",
      
       top: "auto",
      
       zindex: 2000,
      
      
      
       onhide: '',
      
      
      
      
      
       keepVisualState: false,
      
       showWhenRendered: false,
      
       selectBehavior: "disable",
      
       autosized: true
      
       });
      
      //]]>
      
      </script></div></div><script type="text/javascript">
      
      </script></span><span id="_id36"><span id="_actions" style="display:none;">[]</span> <script type="text
      
      /javascript" language="JavaScript">//<![CDATA[
      
       processActions();
      
      //]]>
      
      </script></span><meta name="Ajax-Update-Ids" content="_inc_msg:_id12,_id36" /><span id="ajax-view-state"
      
      ><input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id10" /></span><meta
      
       id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>