0 Replies Latest reply on Oct 11, 2010 5:29 AM by microb

    Problem with rich:dataTable, rich:datascroller, a4j:commandLink

    microb Newbie

      Hi guys.

      I have a problem with method execution when I'm trying to use rich:dataTable, rich:datascroller and a4j:commandLink together.

       

      Here is my code:

      <?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"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:shop="http://test/shoplib">

       

      <ui:composition template="/template.xhtml">
      <ui:param name="title" value="#{msgs.header_productList}"/>

      <ui:define name="header">
      <h:panelGroup>
      <h:panelGrid columns="2">
      <h:panelGroup>
      <h2><h:outputText value="#{msgs.header_header}"/></h2>
      </h:panelGroup>
      <rich:spacer/>
      </h:panelGrid>
      </h:panelGroup>
      </ui:define>

      <ui:define name="sidebar">
      <shop:menu/>
      <shop:shopping-cart/>
      </ui:define>

      <ui:define name="body">
      <rich:panel header="#{msgs.header_productList}">
      <rich:dataTable     id="productList"
      var="product"
      value="#{productBean.productList}"
      width="100%"
      rows="20">

       

      <f:facet name="header">
      <rich:columnGroup>
      <rich:column>
      <h:outputText value="#{msgs.header_id}" />
      </rich:column>
      <rich:column>
      <h:outputText value="#{msgs.header_name}" />
      </rich:column>
      <rich:column>
      <h:outputText value="#{msgs.header_price}" />
      </rich:column>
      <rich:column>
      <rich:spacer />
      </rich:column>
      </rich:columnGroup>
      </f:facet>

      <f:facet name="footer">
      <h:form>
      <rich:datascroller     id="sc"
      for="productList"
      maxPages="20"/>
      </h:form>
      </f:facet>

       

      <rich:column>
      <h:outputText value="#{product.id}" />
      </rich:column>

       

      <rich:column>
      <h:outputText value="#{product.name}" />
      </rich:column>

       

      <rich:column>
      <h:outputText value="#{product.price}" />
      </rich:column>

       

      <rich:column>
      <h:form>
      <a4j:commandLink     action="#{shoppingCartBean.addProduct}"
      value="#{msgs.action_buy}"
      reRender="cart">

      <f:param name="productId" value="#{product.id}" />
      </a4j:commandLink>
      </h:form>
      </rich:column>
      </rich:dataTable>
      </rich:panel>
      <a4j:log popup="false" level="ALL" style="width: 800px; height: 300px;"></a4j:log>
      </ui:define>
      </ui:composition>
      </html>

       

      Method  #{shoppingCartBean.addProduct} is called only on the first page of datascroller.

       

      Here is the ouput of a4j:log

      When first page selected:

      debug[12:24:38,811]: Have Event [object Object] with properties: target: http://localhost/ShopWeb/list.jsf#, srcElement: http://localhost/ShopWeb/list.jsf#, type: click
      debug[12:24:38,811]: Query preparation for form 'productList:10:j_id80' requested
      debug[12:24:38,811]: Append hidden control productList:10:j_id80 with value [productList:10:j_id80] and value attribute [productList:10:j_id80]
      debug[12:24:38,811]: Append hidden control javax.faces.ViewState with value [j_id410] and value attribute [j_id410]
      debug[12:24:38,811]: parameter productList:10:j_id80:j_id81 with value productList:10:j_id80:j_id81
      debug[12:24:38,811]: parameter productId with value 9
      debug[12:24:38,811]: Look up queue with default name
      debug[12:24:38,811]: NEW AJAX REQUEST !!! with form: productList:10:j_id80
      debug[12:24:38,811]: Start XmlHttpRequest
      debug[12:24:38,812]: Request state : 1
      debug[12:24:38,812]: QueryString: AJAXREQUEST=_viewRoot&productList%3A10%3Aj_id80=productList%3A10%3Aj_id80&javax.faces.ViewState=j_id410&productList%3A10%3Aj_id80%3Aj_id81=productList%3A10%3Aj_id80%3Aj_id81&productId=9&
      debug[12:24:38,812]: Request state : 2
      debug[12:24:39,319]: Request state : 3
      debug[12:24:39,325]: Request state : 4
      debug[12:24:39,325]: Request end with state 4
      debug[12:24:39,325]: Response with content-type: text/xml;charset=UTF-8
      debug[12:24:39,325]: Full response content: <?xml version="1.0"?> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" media="rich-extended-skinning" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/page.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/ShopWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/datascroller.js.jsf" type="text/javascript"> </script><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/datascroller.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/utils.js.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/browser_info.js.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanel.js.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.jsf" type="text/javascript"> </script><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.jsf" type="text/javascript"> </script></head><body><span id="cart"><div class="rich-panel" id="j_id18"><div class="rich-panel-header" id="j_id18_header">Shopping Cart</div><div class="rich-panel-body" id="j_id18_body"><table class="rich-table" id="j_id19" border="0" cellpadding="0" cellspacing="0" width="100%"><colgroup span="2"></colgroup><tfoot><tr class="rich-table-footer"><td class="rich-table-footercell" id="j_id19:j_id21" colspan="2" style="text-align: right">Total: 136</td></tr></tfoot><tbody id="j_id19:tb"><tr class="rich-table-row rich-table-firstrow"><td class="rich-table-cell" id="j_id19:0:j_id23">Product 11</td><td class="rich-table-cell" id="j_id19:0:j_id25">3 <form id="j_id19:0:j_id27" name="j_id19:0:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:0:j_id27" value="j_id19:0:j_id27" /> <script type="text/javascript" language="Javascript">//<![CDATA[ function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i < adp.length;i++) {f.removeChild(adp[i]);}}};function apf(f, pvp) {var adp = new Array();f.adp = adp;var i = 0;for (k in pvp) {var p = document.createElement("input");p.type = "hidden";p.name = k;p.value = pvp[k];f.appendChild(p);adp[i++] = p;}};function jsfcljs(f, pvp, t) {apf(f, pvp);var ft = f.target;if (t) {f.target = t;}f.submit();f.target = ft;dpf(f);}; //]]> </script> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:0:j_id27'),{'j_id19:0:j_id27:j_id28':'j_id19:0:j_id27:j_id28','productId':'12'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:1:j_id23">Product 5</td><td class="rich-table-cell" id="j_id19:1:j_id25">1 <form id="j_id19:1:j_id27" name="j_id19:1:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:1:j_id27" value="j_id19:1:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:1:j_id27'),{'j_id19:1:j_id27:j_id28':'j_id19:1:j_id27:j_id28','productId':'6'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:2:j_id23">Product 0</td><td class="rich-table-cell" id="j_id19:2:j_id25">1 <form id="j_id19:2:j_id27" name="j_id19:2:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:2:j_id27" value="j_id19:2:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:2:j_id27'),{'j_id19:2:j_id27:j_id28':'j_id19:2:j_id27:j_id28','productId':'1'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:3:j_id23">Product 9</td><td class="rich-table-cell" id="j_id19:3:j_id25">1 <form id="j_id19:3:j_id27" name="j_id19:3:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:3:j_id27" value="j_id19:3:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:3:j_id27'),{'j_id19:3:j_id27:j_id28':'j_id19:3:j_id27:j_id28','productId':'10'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:4:j_id23">Product 13</td><td class="rich-table-cell" id="j_id19:4:j_id25">4 <form id="j_id19:4:j_id27" name="j_id19:4:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:4:j_id27" value="j_id19:4:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:4:j_id27'),{'j_id19:4:j_id27:j_id28':'j_id19:4:j_id27:j_id28','productId':'14'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:5:j_id23">Product 4</td><td class="rich-table-cell" id="j_id19:5:j_id25">1 <form id="j_id19:5:j_id27" name="j_id19:5:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:5:j_id27" value="j_id19:5:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:5:j_id27'),{'j_id19:5:j_id27:j_id28':'j_id19:5:j_id27:j_id28','productId':'5'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:6:j_id23">Product 10</td><td class="rich-table-cell" id="j_id19:6:j_id25">1 <form id="j_id19:6:j_id27" name="j_id19:6:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:6:j_id27" value="j_id19:6:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:6:j_id27'),{'j_id19:6:j_id27:j_id28':'j_id19:6:j_id27:j_id28','productId':'11'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:7:j_id23">Product 15</td><td class="rich-table-cell" id="j_id19:7:j_id25">1 <form id="j_id19:7:j_id27" name="j_id19:7:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:7:j_id27" value="j_id19:7:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:7:j_id27'),{'j_id19:7:j_id27:j_id28':'j_id19:7:j_id27:j_id28','productId':'16'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id19:8:j_id23">Product 8</td><td class="rich-table-cell" id="j_id19:8:j_id25">1 <form id="j_id19:8:j_id27" name="j_id19:8:j_id27" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id19:8:j_id27" value="j_id19:8:j_id27" /> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id19:8:j_id27'),{'j_id19:8:j_id27:j_id28':'j_id19:8:j_id27:j_id28','productId':'9'},'');}return false">Remove</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></td></tr></tbody></table><a href="javascript:Richfaces.showModalPanel('checkoutDialog')">Checkout</a></div></div><div id="checkoutDialog" style="display: none;"><input autocomplete="off" id="checkoutDialogOpenedState" name="checkoutDialogOpenedState" type="hidden" /><div class="rich-modalpanel" id="checkoutDialogContainer" style="position: absolute; display: none; z-index: 100; background-color: inherit;"><div class="rich-mpnl-mask-div-opaque rich-mpnl-mask-div" id="checkoutDialogDiv" style="z-index: -1;"><button class="rich-mpnl-button" id="checkoutDialogFirstHref"></button></div><div class="rich-mpnl-panel"><div class="rich-mp-container" id="checkoutDialogCDiv" style="position: absolute; left: 0px; top: 0px; z-index: 9;"><div class="rich-mpnl-shadow" id="checkoutDialogShadowDiv"></div><div class="rich-mpnl-ovf-hd rich-mpnl-trim rich-mpnl-content" id="checkoutDialogContentDiv"><table border="0" cellpadding="0" cellspacing="0" class="rich-mp-content-table" id="checkoutDialogContentTable" style="height: 100%; width: 100%;"><tbody><tr style="height: 99%"><td class="rich-mpnl-body" valign="top"><div class="rich-panel" id="j_id32"><div class="rich-panel-header" id="j_id32_header"><table width="100%"><tbody><tr><td>Order Checkout</td><td><div style="text-align: right"><a href="javascript:Richfaces.hideModalPanel('checkoutDialog')">Close</a></div></td></tr></tbody></table></div><div class="rich-panel-body" id="j_id32_body"><form id="j_id39" name="j_id39" method="post" action="/ShopWeb/list.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id39" value="j_id39" /> <table class="rich-table" id="j_id39:j_id40" border="0" cellpadding="0" cellspacing="0" width="100%"><colgroup span="4"></colgroup><thead class="rich-table-thead"><tr class="rich-table-header"><th class="rich-table-headercell" id="j_id39:j_id40:j_id42">ID</th><th class="rich-table-headercell" id="j_id39:j_id40:j_id44">Name</th><th class="rich-table-headercell" id="j_id39:j_id40:j_id46">Price</th><th class="rich-table-headercell" id="j_id39:j_id40:j_id48">Count</th></tr></thead><tbody id="j_id39:j_id40:tb"><tr class="rich-table-row rich-table-firstrow"><td class="rich-table-cell" id="j_id39:j_id40:0:j_id50">12</td><td class="rich-table-cell" id="j_id39:j_id40:0:j_id52">Product 11</td><td class="rich-table-cell" id="j_id39:j_id40:0:j_id54">11</td><td class="rich-table-cell" id="j_id39:j_id40:0:j_id56">3</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:1:j_id50">6</td><td class="rich-table-cell" id="j_id39:j_id40:1:j_id52">Product 5</td><td class="rich-table-cell" id="j_id39:j_id40:1:j_id54">5</td><td class="rich-table-cell" id="j_id39:j_id40:1:j_id56">1</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:2:j_id50">1</td><td class="rich-table-cell" id="j_id39:j_id40:2:j_id52">Product 0</td><td class="rich-table-cell" id="j_id39:j_id40:2:j_id54">0</td><td class="rich-table-cell" id="j_id39:j_id40:2:j_id56">1</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:3:j_id50">10</td><td class="rich-table-cell" id="j_id39:j_id40:3:j_id52">Product 9</td><td class="rich-table-cell" id="j_id39:j_id40:3:j_id54">9</td><td class="rich-table-cell" id="j_id39:j_id40:3:j_id56">1</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:4:j_id50">14</td><td class="rich-table-cell" id="j_id39:j_id40:4:j_id52">Product 13</td><td class="rich-table-cell" id="j_id39:j_id40:4:j_id54">13</td><td class="rich-table-cell" id="j_id39:j_id40:4:j_id56">4</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:5:j_id50">5</td><td class="rich-table-cell" id="j_id39:j_id40:5:j_id52">Product 4</td><td class="rich-table-cell" id="j_id39:j_id40:5:j_id54">4</td><td class="rich-table-cell" id="j_id39:j_id40:5:j_id56">1</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:6:j_id50">11</td><td class="rich-table-cell" id="j_id39:j_id40:6:j_id52">Product 10</td><td class="rich-table-cell" id="j_id39:j_id40:6:j_id54">10</td><td class="rich-table-cell" id="j_id39:j_id40:6:j_id56">1</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:7:j_id50">16</td><td class="rich-table-cell" id="j_id39:j_id40:7:j_id52">Product 15</td><td class="rich-table-cell" id="j_id39:j_id40:7:j_id54">15</td><td class="rich-table-cell" id="j_id39:j_id40:7:j_id56">1</td></tr><tr class="rich-table-row"><td class="rich-table-cell" id="j_id39:j_id40:8:j_id50">9</td><td class="rich-table-cell" id="j_id39:j_id40:8:j_id52">Product 8</td><td class="rich-table-cell" id="j_id39:j_id40:8:j_id54">8</td><td class="rich-table-cell" id="j_id39:j_id40:8:j_id56">1</td></tr></tbody></table><div style="text-align: right"><a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id39'),{'j_id39:j_id59':'j_id39:j_id59'},'');}return false">Checkout</a></div><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></form></div></div></td></tr></tbody></table></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerN" style="width: 40px; height: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerE" style="height: 40px; width: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerS" style="width: 40px; height: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerW" style="height: 40px; width: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerNWU" style="width: 40px; height: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerNEU" style="height: 40px; width: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerNEL" style="width: 40px; height: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerSEU" style="height: 40px; width: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerSEL" style="width: 40px; height: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerSWL" style="height: 40px; width: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerSWU" style="width: 40px; height: 4px;"></div><div class="rich-mpnl-resizer" id="checkoutDialogResizerNWL" style="height: 40px; width: 4px;"></div></div></div><div class="rich-mpnl-mask-div rich-mpnl-mask-div-transparent" id="checkoutDialogCursorDiv" style="z-index: -200;"><button class="rich-mpnl-button" id="checkoutDialogLastHref"></button></div><script type="text/javascript">//<![CDATA[ new ModalPanel('checkoutDialog', { width: -1, height: -1, minWidth: -1, minHeight: -1, resizeable: true, moveable: true, left: "auto", top: "auto", zindex: 100,onresize: '',onmove: '',onshow: '',onhide: '',onbeforeshow: '',onbeforehide: '', domElementAttachment: "", keepVisualState: false, showWhenRendered: false, selectBehavior: "disable", autosized: false, overlapEmbedObjects: false}); //]]> </script></div><script type="text/javascript"> </script></div></span><meta name="Ajax-Update-Ids" content="cart" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /><meta name="Ajax-Update-Ids" content="cart" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id411" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
      debug[12:24:39,346]: Header Ajax-Expired not found, search in <meta>
      debug[12:24:39,346]: search for elements by name 'meta' in element #document
      debug[12:24:39,346]: Find <meta name='Ajax-Update-Ids' content='cart'>
      debug[12:24:39,346]: Find <meta name='Ajax-Response' content='true'>
      debug[12:24:39,346]: Find <meta name='Ajax-Update-Ids' content='cart'>
      debug[12:24:39,346]: Find <meta name='Ajax-Response' content='true'>
      debug[12:24:39,346]: Header Ajax-Update-Ids not found, search in <meta>
      debug[12:24:39,346]: search for elements by name 'meta' in element #document
      debug[12:24:39,347]: Find <meta name='Ajax-Update-Ids' content='cart'>
      debug[12:24:39,347]: Update page by list of rendered areas from response cart
      debug[12:24:39,347]: search for elements by name 'script' in element #document
      debug[12:24:39,347]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript.jsf
      debug[12:24:39,347]: Such element exist in document
      debug[12:24:39,347]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.jsf
      debug[12:24:39,348]: Such element exist in document
      debug[12:24:39,348]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/datascroller.js.jsf
      debug[12:24:39,348]: Such element exist in document
      debug[12:24:39,348]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/utils.js.jsf
      debug[12:24:39,348]: Such element exist in document
      debug[12:24:39,348]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/browser_info.js.jsf
      debug[12:24:39,348]: Such element exist in document
      debug[12:24:39,348]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanel.js.jsf
      debug[12:24:39,348]: Such element exist in document
      debug[12:24:39,348]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.jsf
      debug[12:24:39,348]: Such element exist in document
      debug[12:24:39,348]: <script> in response with src=/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.jsf
      debug[12:24:39,348]: Such element exist in document
      debug[12:24:39,349]: search for elements by name 'link' in element #document
      debug[12:24:39,349]: <link> in response with src=/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
      debug[12:24:39,349]: Such element exist in document
      debug[12:24:39,349]: <link> in response with src=/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
      debug[12:24:39,349]: Such element exist in document
      debug[12:24:39,349]: <link> in response with src=/ShopWeb/a4j/s/3_3_3.Finalcss/page.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
      debug[12:24:39,349]: Such element exist in document
      debug[12:24:39,349]: <link> in response with src=/ShopWeb/a4j/s/3_3_3.Finalcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
      debug[12:24:39,349]: Such element exist in document
      debug[12:24:39,349]: <link> in response with src=/ShopWeb/a4j/s/3_3_3.Finalcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
      debug[12:24:39,350]: Such element exist in document
      debug[12:24:39,350]: <link> in response with src=/ShopWeb/a4j/s/3_3_3.Finalcss/datascroller.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
      debug[12:24:39,350]: Such element exist in document
      debug[12:24:39,350]: <link> in response with src=/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
      debug[12:24:39,350]: Such element exist in document
      debug[12:24:39,350]: call getElementById for id= org.ajax4jsf.queue_script
      debug[12:24:39,350]: Update page part from call parameter for ID cart
      debug[12:24:39,350]: call getElementById for id= cart
      debug[12:24:39,352]: Replace content of node by replaceChild()
      debug[12:24:39,368]: Update part of page for Id: cart successful
      debug[12:24:39,368]: call getElementById for id= org.ajax4jsf.oncomplete
      debug[12:24:39,368]: Processing updates finished, no oncomplete function to call
      debug[12:24:39,368]: call getElementById for id= ajax-view-state
      debug[12:24:39,368]: Hidden JSF state fields: [object HTMLElement]
      debug[12:24:39,368]: Namespace for hidden view-state input fields is undefined
      debug[12:24:39,368]: search for elements by name 'input' in element span
      debug[12:24:39,369]: Replace value for inputs: 65 by new values: 1
      debug[12:24:39,369]: Input in response: javax.faces.ViewState
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,369]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,370]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,371]: Found same input on page with type: hidden
      debug[12:24:39,372]: Found same input on page with type: hidden
      debug[12:24:39,372]: Found same input on page with type: hidden
      debug[12:24:39,372]: Found same input on page with type: hidden
      debug[12:24:39,372]: Found same input on page with type: hidden
      debug[12:24:39,372]: Found same input on page with type: hidden
      debug[12:24:39,372]: Found same input on page with type: hidden
      debug[12:24:39,372]: search for elements by name 'INPUT' in element span
      debug[12:24:39,373]: Replace value for inputs: 65 by new values: 0
      debug[12:24:39,373]: call getElementById for id= _A4J.AJAX.focus
      debug[12:24:39,373]: No focus information in response

       

      When other pages selected:

      debug[12:25:47,321]: Have Event [object Object] with properties: target: http://localhost/ShopWeb/list.jsf#, srcElement: http://localhost/ShopWeb/list.jsf#, type: click
      debug[12:25:47,321]: Query preparation for form 'productList:34:j_id80' requested
      debug[12:25:47,321]: Append hidden control productList:34:j_id80 with value [productList:34:j_id80] and value attribute [productList:34:j_id80]
      debug[12:25:47,321]: Append hidden control javax.faces.ViewState with value [j_id412] and value attribute [j_id412]
      debug[12:25:47,322]: parameter productList:34:j_id80:j_id81 with value productList:34:j_id80:j_id81
      debug[12:25:47,322]: parameter productId with value 33
      debug[12:25:47,322]: Look up queue with default name
      debug[12:25:47,322]: NEW AJAX REQUEST !!! with form: productList:34:j_id80
      debug[12:25:47,322]: Start XmlHttpRequest
      debug[12:25:47,322]: Request state : 1
      debug[12:25:47,322]: QueryString: AJAXREQUEST=_viewRoot&productList%3A34%3Aj_id80=productList%3A34%3Aj_id80&javax.faces.ViewState=j_id412&productList%3A34%3Aj_id80%3Aj_id81=productList%3A34%3Aj_id80%3Aj_id81&productId=33&
      debug[12:25:47,323]: Request state : 2
      debug[12:25:47,646]: Request state : 3
      debug[12:25:47,652]: Request state : 4
      debug[12:25:47,652]: Request end with state 4
      debug[12:25:47,652]: Response with content-type: text/xml;charset=UTF-8
      debug[12:25:47,652]: Full response content: <?xml version="1.0"?> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" media="rich-extended-skinning" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/page.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/ShopWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/datascroller.js.jsf" type="text/javascript"> </script><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalcss/datascroller.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/utils.js.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/browser_info.js.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanel.js.jsf" type="text/javascript"> </script><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.jsf" type="text/javascript"> </script><link class="component" href="/ShopWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/ShopWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.jsf" type="text/javascript"> </script></head><body><meta name="Ajax-Update-Ids" content="" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id413" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /><meta name="Ajax-Update-Ids" content="" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id413" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
      debug[12:25:47,652]: Header Ajax-Expired not found, search in <meta>
      debug[12:25:47,652]: search for elements by name 'meta' in element #document
      debug[12:25:47,652]: Find <meta name='Ajax-Update-Ids' content=''>
      debug[12:25:47,652]: Find <meta name='Ajax-Response' content='true'>
      debug[12:25:47,652]: Find <meta name='Ajax-Update-Ids' content=''>
      debug[12:25:47,652]: Find <meta name='Ajax-Response' content='true'>
      debug[12:25:47,652]: Header Ajax-Update-Ids not found, search in <meta>
      debug[12:25:47,652]: search for elements by name 'meta' in element #document
      debug[12:25:47,652]: Find <meta name='Ajax-Update-Ids' content=''>
      warn[12:25:47,652]: No information in response about elements to replace
      debug[12:25:47,652]: call getElementById for id= org.ajax4jsf.oncomplete
      debug[12:25:47,652]: Processing updates finished, no oncomplete function to call
      debug[12:25:47,652]: call getElementById for id= ajax-view-state
      debug[12:25:47,653]: Hidden JSF state fields: [object HTMLElement]
      debug[12:25:47,653]: Namespace for hidden view-state input fields is undefined
      debug[12:25:47,653]: search for elements by name 'input' in element span
      debug[12:25:47,653]: Replace value for inputs: 65 by new values: 1
      debug[12:25:47,653]: Input in response: javax.faces.ViewState
      debug[12:25:47,653]: Found same input on page with type: hidden
      debug[12:25:47,653]: Found same input on page with type: hidden
      debug[12:25:47,653]: Found same input on page with type: hidden
      debug[12:25:47,653]: Found same input on page with type: hidden
      debug[12:25:47,653]: Found same input on page with type: hidden
      debug[12:25:47,653]: Found same input on page with type: hidden
      debug[12:25:47,653]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,654]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,655]: Found same input on page with type: hidden
      debug[12:25:47,656]: Found same input on page with type: hidden
      debug[12:25:47,656]: Found same input on page with type: hidden
      debug[12:25:47,656]: Found same input on page with type: hidden
      debug[12:25:47,656]: Found same input on page with type: hidden
      debug[12:25:47,656]: search for elements by name 'INPUT' in element span
      debug[12:25:47,656]: Replace value for inputs: 65 by new values: 0
      debug[12:25:47,656]: call getElementById for id= _A4J.AJAX.focus
      debug[12:25:47,656]: No focus information in response