0 Replies Latest reply on Nov 23, 2010 1:45 PM by Mitko Georgiev

    Richfaces repeat tag with onchange problem

    Mitko Georgiev Newbie

      Hi all,


      I try to implement Repeat RichFaces Example (<a4j:repeat> tag) with Seam http://livedemo.exadel.com/richfaces-demo/richfaces/repeat.jsf?c=repeat&tab=usage.


      But onchange event is not thrown or don't invoke updateBean.change method for some reason.
      The updateBean is component with Seam Event scope.


      Here is ajax log of the event:




      debug[20:06:21,494]: Have Event [object Object] with properties: target: [object HTMLInputElement], srcElement: undefined, type: change
      debug[20:06:21,495]: Query preparation for form 'j_id101' requested
      debug[20:06:21,496]: Append hidden control j_id101 with value [j_id101] and value attribute [j_id101]
      debug[20:06:21,498]: Append text control j_id101:tableRepeat:0:j_id145:0:priceElem with value [33] and value attribute [0.0]
      debug[20:06:21,499]: Append hidden control javax.faces.ViewState with value [j_id18] and value attribute [j_id18]
      debug[20:06:21,499]: parameter j_id101:tableRepeat:0:j_id145:0:j_id151 with value j_id101:tableRepeat:0:j_id145:0:j_id151
      debug[20:06:21,500]: Look up queue with default name
      debug[20:06:21,501]: NEW AJAX REQUEST !!! with form: j_id101
      debug[20:06:21,502]: Start XmlHttpRequest
      debug[20:06:21,502]: Request state : 1
      debug[20:06:21,504]: QueryString: AJAXREQUEST=_viewRoot&j_id101=j_id101&j_id101%3AtableRepeat%3A0%3Aj_id145%3A0%3ApriceElem=33&javax.faces.ViewState=j_id18&j_id101%3AtableRepeat%3A0%3Aj_id145%3A0%3Aj_id151=j_id101%3AtableRepeat%3A0%3Aj_id145%3A0%3Aj_id151&
      debug[20:06:21,505]: Request state : 1
      debug[20:06:21,628]: Request state : 2
      debug[20:06:21,629]: Request state : 3
      debug[20:06:21,630]: Request state : 4
      debug[20:06:21,631]: Request end with state 4
      debug[20:06:21,631]: Response with content-type: text/xml;charset=UTF-8
      debug[20:06:21,632]: Full response content: <?xml version="1.0"?> <html lang="bg_BG" xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link class="component" href="/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_" rel="stylesheet" type="text/css" /><link class="component" href="/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_" media="rich-extended-skinning" rel="stylesheet" type="text/css" /><script src="/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript" type="text/javascript"> </script><script src="/a4j/g/3_3_3.Finalscripts/scriptaculous/effects.js" type="text/javascript"> </script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/script/processEffect.js" type="text/javascript"> </script><script src="/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript" type="text/javascript"> </script><link class="component" href="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/css/msg.css" rel="stylesheet" type="text/css" /><link class="component" href="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/css/msgs.css" rel="stylesheet" type="text/css" /><script src="/a4j/g/3_3_3.Finalorg/ajax4jsf/javascript/scripts/form.js" type="text/javascript"> </script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js" type="text/javascript"> </script></head><body><dl id="j_id101:j_id154" class="rich-messages" style="display: none;"><dt></dt></dl><meta name="Ajax-Update-Ids" content="j_id101:j_id154" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id18" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /><meta name="Ajax-Update-Ids" content="j_id101:j_id154" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id18" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
      debug[20:06:21,637]: Header Ajax-Expired not found, search in <meta>
      debug[20:06:21,638]: search for elements by name 'meta' in element #document
      debug[20:06:21,639]: Find <meta name='Ajax-Update-Ids' content='j_id101:j_id154'>
      debug[20:06:21,639]: Find <meta name='Ajax-Response' content='true'>
      debug[20:06:21,640]: Find <meta name='Ajax-Update-Ids' content='j_id101:j_id154'>
      debug[20:06:21,641]: Find <meta name='Ajax-Response' content='true'>
      debug[20:06:21,642]: Header Ajax-Update-Ids not found, search in <meta>
      debug[20:06:21,642]: search for elements by name 'meta' in element #document
      debug[20:06:21,643]: Find <meta name='Ajax-Update-Ids' content='j_id101:j_id154'>
      debug[20:06:21,644]: Update page by list of rendered areas from response j_id101:j_id154
      debug[20:06:21,645]: search for elements by name 'script' in element #document
      debug[20:06:21,646]: <script> in response with src=/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript
      debug[20:06:21,647]: Such element exist in document
      debug[20:06:21,648]: <script> in response with src=/a4j/g/3_3_3.Finalscripts/scriptaculous/effects.js
      debug[20:06:21,649]: Such element exist in document
      debug[20:06:21,650]: <script> in response with src=/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/script/processEffect.js
      debug[20:06:21,651]: Such element exist in document
      debug[20:06:21,652]: <script> in response with src=/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript
      debug[20:06:21,653]: Such element exist in document
      debug[20:06:21,654]: <script> in response with src=/a4j/g/3_3_3.Finalorg/ajax4jsf/javascript/scripts/form.js
      debug[20:06:21,655]: Such element exist in document
      debug[20:06:21,655]: <script> in response with src=/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js
      debug[20:06:21,656]: Such element exist in document
      debug[20:06:21,657]: search for elements by name 'link' in element #document
      debug[20:06:21,658]: <link> in response with src=/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_
      debug[20:06:21,660]: Such element exist in document
      debug[20:06:21,661]: <link> in response with src=/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_
      debug[20:06:21,661]: Such element exist in document
      debug[20:06:21,662]: <link> in response with src=/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/css/msg.css
      debug[20:06:21,663]: Such element exist in document
      debug[20:06:21,664]: <link> in response with src=/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/css/msgs.css
      debug[20:06:21,664]: Such element exist in document
      debug[20:06:21,665]: call getElementById for id= org.ajax4jsf.queue_script
      debug[20:06:21,666]: Update page part from call parameter for ID j_id101:j_id154
      debug[20:06:21,667]: call getElementById for id= j_id101:j_id154
      debug[20:06:21,668]: Replace content of node by replaceChild()
      debug[20:06:21,670]: search for elements by name 'script' in element dl
      debug[20:06:21,670]: Scripts in updated part count : 0
      debug[20:06:21,671]: call getElementById for id= org.ajax4jsf.oncomplete
      debug[20:06:21,672]: Processing updates finished, no oncomplete function to call
      debug[20:06:21,673]: Update part of page for Id: j_id101:j_id154 successful
      debug[20:06:21,674]: call getElementById for id= ajax-view-state
      debug[20:06:21,674]: Hidden JSF state fields: [object HTMLSpanElement]
      debug[20:06:21,675]: Namespace for hidden view-state input fields is undefined
      debug[20:06:21,676]: search for elements by name 'input' in element span
      debug[20:06:21,677]: Replace value for inputs: 19 by new values: 1
      debug[20:06:21,678]: Input in response: javax.faces.ViewState
      debug[20:06:21,681]: Found same input on page with type: hidden
      debug[20:06:21,682]: Found same input on page with type: hidden
      debug[20:06:21,683]: search for elements by name 'INPUT' in element span
      debug[20:06:21,684]: Replace value for inputs: 19 by new values: 0
      debug[20:06:21,685]: call getElementById for id= _A4J.AJAX.focus
      debug[20:06:21,686]: No focus information in response





      Do you have some ideas?


      Thanks in advance!