Ajax reRender break Tomahawk commandButton
------------------------------------------

                 Key: RF-3824
                 URL: http://jira.jboss.com/jira/browse/RF-3824
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.1.6
         Environment: Windows XP + Firefox 2.0.0.14
            Reporter: Marine Wacheux
             Fix For: 3.1.x


After reRendering a richPanel that own a tomahawk commandButton, this button 
dosn't work anymore.
JavaScript error :
f has no properties
a4j_3_1_6.GAorg.ajax4jsf.javascript.AjaxScript - Line 986

Form HTML owning tomahawk button before reRender :

<form enctype="application/x-www-form-urlencoded" 
action="/gcm-web-patients/faces/jsp/rdv/DevisActeOperatoireSansNav.jsp" 
method="post" name="body:formActionsGlobales" id="body:formActionsGlobales" 
target=""><div class="DIV_BOUTONS_CENTRES"><input type="submit" 
class="BTN_FERMER" title="Fermer" onclick="if(typeof 
window.clearFormHiddenParams_body_formActionsGlobales!='undefined'){clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');}if(typeof
 
window.getScrolling!='undefined'){oamSetHiddenInput('body:formActionsGlobales','autoScroll',getScrolling());}"
 value=" " name="body:formActionsGlobales:btnFermer" 
id="body:formActionsGlobales:btnFermer"/>
<input type="hidden" name="autoScroll"/>
</div><input type="hidden" value="1" 
name="body:formActionsGlobales_SUBMIT"/><input type="hidden" 
name="body:formActionsGlobales:_link_hidden_" value=""/><input type="hidden" 
name="body:formActionsGlobales:_idcl" value=""/><script 
type="text/javascript"><!--

        function clear_body_3AformActionsGlobales()
        {
                
clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');
        }
        
        function clearFormHiddenParams_body_formActionsGlobales(currFormName)
        {
                var f = document.forms['body:formActionsGlobales'];
                f.elements['body:formActionsGlobales:_link_hidden_'].value='';
                f.elements['body:formActionsGlobales:_idcl'].value='';
                f.target='';
        }
        
        clearFormHiddenParams_body_formActionsGlobales();
//--></script><input type="hidden" 
value="8EgC7hvJoXWgMHaUZxk5rx66APlnNueyP32ajDxbvc/i5akMf2jX5WWSSrgXZJhYKzcAAFHyrv86yIYKdwr0uOheIjdsKfp03QYDic7/mAIYaFPjvIjow2OLV06wFNI0"
 id="javax.faces.ViewState" name="javax.faces.ViewState"/></form>


Form HTML owning tomahawk button after reRender :

<form id="body:formActionsGlobales" name="body:formActionsGlobales" 
method="post" 
action="/gcm-web-patients/faces/jsp/rdv/DevisActeOperatoireSansNav.jsp" 
enctype="application/x-www-form-urlencoded"><div 
class="DIV_BOUTONS_CENTRES"><input type="submit" 
id="body:formActionsGlobales:btnFermer" 
name="body:formActionsGlobales:btnFermer" value=" " onclick="if(typeof 
window.clearFormHiddenParams_body_formActionsGlobales!='undefined'){clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');}if(typeof
 
window.getScrolling!='undefined'){oamSetHiddenInput('body:formActionsGlobales','autoScroll',getScrolling());}"
 title="Fermer" class="BTN_FERMER"/> <input type="hidden" 
name="autoScroll"/></div><input type="hidden" 
name="body:formActionsGlobales_SUBMIT" value="1"/><input type="hidden" 
name="body:formActionsGlobales:_link_hidden_"/><input type="hidden" 
name="body:formActionsGlobales:_idcl"/><script 
type="text/javascript">//<![CDATA[


        function clear_body_3AformActionsGlobales()
        {
                
clearFormHiddenParams_body_formActionsGlobales('body:formActionsGlobales');
        }
        
        function clearFormHiddenParams_body_formActionsGlobales(currFormName)
        {
                var f = document.forms['body:formActionsGlobales'];
                f.elements['body:formActionsGlobales:_link_hidden_'].value='';
                f.elements['body:formActionsGlobales:_idcl'].value='';
                f.target='';
        }
        
        clearFormHiddenParams_body_formActionsGlobales();
//
//]]>
</script><span id="org.ajax4jsf.view.state" 
name="org.ajax4jsf.view.state"/></form>


-- 
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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to