11 Replies Latest reply on Jan 20, 2009 12:09 PM by Juan Ignacio Garzon

    Rerender of h:inputText fails

    Juan Ignacio Garzon Newbie

      I have a page with a table of entities and a button in each row that rerenders a rich:modalpanel allowing the user to field the data in a h:inputText.

      This is the code:

      <f:view>
       <f:loadBundle basename="#{paisController.resourceGeneralName}"
       var="msg" />
       <f:loadBundle basename="#{paisController.resourceBundleName}"
       var="msgEntidad" />
       <a4j:log level="ALL" />
       <a4j:form id="formListado">
       <a4j:region>
       <rich:dataTable var="entidad" value="#{paisController.listado}">
       <rich:column width="18">
       <f:facet name="header">
       <h:outputText value="" />
       </f:facet>
       <h:outputText value="#{entidad.nombre}" />
       </rich:column>
       <rich:column width="18">
       <a4j:commandLink
       onclick="javascript:Richfaces.showModalPanel('ventanaEditar');"
       reRender="formEditar">
       <a4j:actionparam name="componenteEditar" value="#{entidad}"
       assignTo="#{paisController.entidadSeleccionada}"
       converter="#{paisController.converterEntidad}" />
       <h:graphicImage value="/img/pencil.png"
       style="cursor:pointer; border: 0px" />
       </a4j:commandLink>
       </rich:column>
       </rich:dataTable>
       </a4j:region>
       <rich:separator height="1px" />
       </a4j:form>
       <rich:modalPanel id="ventanaEditar" zindex="2000" autosized="true"
       resizeable="false">
       <a4j:form id="formEditar">
       <!-- THIS DOES NOT RERENDER AFTER FIRST CALL: -->
       <h:inputText id="nombre" required="true"
       value="#{paisController.entidadSeleccionada.nombre}" />
       <!-- THIS RERENDERS OK: -->
       <h:outputText value="#{paisController.entidadSeleccionada.nombre}" />
       <a4j:commandLink id="btnSubmit" styleClass="botonLink"
       action="#{paisController.guardarEntidadSeleccionada}"
       reRender="formListado" ajaxSingle="false"
       oncomplete="javascript:windowclose_ventanaEditar();"
       style="float:right" status="statusGeneral">
       <h:graphicImage value="/img/accept.png"
       style="cursor:pointer; border: 0px" />
       <h:outputText value="#{msg.guardar}" />
       </a4j:commandLink>
       <a4j:commandLink id="btnCancelar"
       action="#{paisController.cancelarModificacion}"
       reRender="formListado"
       oncomplete="javascript:windowclose_ventanaEditar();"
       styleClass="botonLink" style="float:right" status="statusGeneral"
       immediate="true">
       <h:graphicImage value="/img/cancel.png"
       style="cursor:pointer; border: 0px" />
       <h:outputText value="#{msg.cancelar}" />
       </a4j:commandLink>
       </a4j:form>
       </rich:modalPanel>
       <script type="text/javascript"> function
       windowclose_ventanaEditar(){
       javascript:Richfaces.hideModalPanel('ventanaEditar'); }; </script>
      </f:view>
      </html>


      The first time I click a row, the modal panel displays Ok, but after that the h:inputText never gets rerendered, I debugged and the method referred by
      #{paisController.entidadSeleccionada.nombre}" is never called again.

      If i put a h:outputText inside the modalpanel with the same value, it rerenders. If i put the h:inputText inside the same form of the datatable it rerenders Ok.

      I have googled and many people had this issue, and some of them solved it surrounding the h:inputText or the a4j:commandButton with a a4j:region, but this did not work for me.

      Please help me, I'm with this problem since a week.

      I'm using RichFaces 3.3.0 on a Tomcat 6.0.16 with MyFaces 1.2.5.

      Thanks in advance!

        • 1. Re: Rerender of h:inputText fails
          Nick Belaevski Master

          Hello,

          Can you please add the following to the page:

          <a4j:log popup="false" />
          and check if there are any errors/warnings there?

          • 2. Re: Rerender of h:inputText fails
            Juan Ignacio Garzon Newbie

            There are no errors or warnings in the output of the a4j:log, if you look the posted code, i was already using it.

            Would it be useful to post the entire log output?

            Thanks for your response.

            • 3. Re: Rerender of h:inputText fails
              Nick Belaevski Master

              Yes, it would be useful.

              • 4. Re: Rerender of h:inputText fails
                Ilya Shaikovsky Master

                also place rich:messages to the page.

                • 5. Re: Rerender of h:inputText fails
                  Juan Ignacio Garzon Newbie

                  I've cutted the view state characters from the log output for legibility. If they are useful I can post them.

                  This is the log output when selecting first entity:

                  debug[9:14:30,795]: Have Event [object Object] with properties: target: [object HTMLImageElement], srcElement: [object HTMLImageElement], type: click
                  debug[9:14:30,796]: Query preparation for form 'formListado' requested
                  debug[9:14:30,796]: Append hidden control formListado with value [formListado] and value attribute [formListado]
                  debug[9:14:30,797]: Append hidden control autoScroll with value [] and value attribute []
                  debug[9:14:30,797]: Append hidden control javax.faces.ViewState with value [ VERY LARGE CHUNK OF CHARACTERS (CUTTED)] and value attribute [ VERY LARGE CHUNK OF CHARACTERS (CUTTED)]
                  debug[9:14:30,798]: parameter formListado:j_id4:0:j_id9 with value formListado:j_id4:0:j_id9
                  debug[9:14:30,798]: parameter componenteEditar with value 1
                  debug[9:14:30,798]: Look up queue with default name
                  debug[9:14:30,798]: NEW AJAX REQUEST !!! with form: formListado
                  debug[9:14:30,800]: Start XmlHttpRequest
                  debug[9:14:30,800]: Reqest state : 1
                  debug[9:14:30,806]: QueryString: AJAXREQUEST=formListado%3Aj_id3&formListado=formListado&autoScroll=&javax.faces.ViewState=VERY-LARGE-CHUNK-OF-CHARACTERS-CUTTED&formListado%3Aj_id4%3A0%3Aj_id9=formListado%3Aj_id4%3A0%3Aj_id9&componenteEditar=1&
                  debug[9:14:30,932]: Reqest state : 2
                  debug[9:14:30,932]: Reqest state : 3
                  debug[9:14:30,933]: Reqest state : 3
                  debug[9:14:30,933]: Reqest state : 3
                  debug[9:14:30,933]: Reqest state : 3
                  debug[9:14:30,934]: Reqest state : 3
                  debug[9:14:30,935]: Reqest state : 3
                  debug[9:14:30,937]: Reqest state : 3
                  debug[9:14:30,939]: Reqest state : 3
                  debug[9:14:30,941]: Reqest state : 3
                  debug[9:14:30,942]: Reqest state : 3
                  debug[9:14:30,943]: Reqest state : 3
                  debug[9:14:30,944]: Reqest state : 4
                  debug[9:14:30,944]: Reqest end with state 4
                  debug[9:14:30,945]: Response with content-type: text/xml;charset=UTF-8
                  debug[9:14:30,945]: Full response content: <html xmlns="http://www.w3.org/1999/xhtml"><head><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" media="rich-extended-skinning" rel="stylesheet" type="text/css" /><script src="/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/ajax4jsf/javascript/scripts/form.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/data-table.js.xcss" type="text/javascript"></script><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAcss/separator.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/utils.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/browser_info.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanel.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.xcss" type="text/javascript"></script><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js.xcss" type="text/javascript"></script></head><body><form id="formEditar" name="formEditar" method="post" action="/bdrc-website/app/prueba.jsf">Argentina<input id="formEditar:nombre" name="formEditar:nombre" type="text" value="Argentina" /><a class="botonLink" href="#" id="formEditar:btnSubmit" name="formEditar:btnSubmit" onclick="A4J.AJAX.Submit('_viewRoot','formEditar',event,{'status':'statusGeneral','oncomplete':function(request,event,data){javascript:windowclose_ventanaEditar();},'similarityGroupingId':'formEditar:btnSubmit','parameters':{'formEditar:btnSubmit':'formEditar:btnSubmit'} ,'actionUrl':'/bdrc-website/app/prueba.jsf'} );return false;" style="float:right"><img src="/bdrc-website/img/accept.png" style="cursor:pointer; border: 0px" />Guardar</a><a class="botonLink" href="#" id="formEditar:btnCancelar" name="formEditar:btnCancelar" onclick="A4J.AJAX.Submit('_viewRoot','formEditar',event,{'status':'statusGeneral','oncomplete':function(request,event,data){javascript:windowclose_ventanaEditar();},'similarityGroupingId':'formEditar:btnCancelar','parameters':{'formEditar:btnCancelar':'formEditar:btnCancelar'} ,'actionUrl':'/bdrc-website/app/prueba.jsf'} );return false;" style="float:right"><img src="/bdrc-website/img/cancel.png" style="cursor:pointer; border: 0px" />Cancelar</a><input type="hidden" name="formEditar" value="formEditar" /><input type="hidden" name="autoScroll" value="" /><input type="hidden" name="formEditar:_link_hidden_" value="" /><input type="hidden" name="formEditar:j_idcl" value="" /><script type="text/javascript">function clear_formEditar() {
                   _clearJSFFormParameters('formEditar','',['formEditar:_link_hidden_','formEditar:j_idcl']);
                   }
                   function clearFormHiddenParams_formEditar(){clear_formEditar();}
                   function clearFormHiddenParams_formEditar(){clear_formEditar();}
                   clear_formEditar();
                   //</script><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="VERY LARGE CHUNK OF CHARACTERS (CUTTED)" /></form><meta name="Ajax-Update-Ids" content="formEditar" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="VERY LARGE CHUNK OF CHARACTERS (CUTTED)" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
                  debug[9:14:30,950]: Header Ajax-Expired not found, search in <meta>
                  debug[9:14:30,950]: search for elements by name 'meta' in element #document
                  debug[9:14:30,951]: Find <meta name='Ajax-Update-Ids' content='formEditar'>
                  debug[9:14:30,951]: Find <meta name='Ajax-Response' content='true'>
                  debug[9:14:30,951]: Header Ajax-Update-Ids not found, search in <meta>
                  debug[9:14:30,951]: search for elements by name 'meta' in element #document
                  debug[9:14:30,951]: Find <meta name='Ajax-Update-Ids' content='formEditar'>
                  debug[9:14:30,951]: Update page by list of rendered areas from response formEditar
                  debug[9:14:30,952]: search for elements by name 'script' in element #document
                  debug[9:14:30,952]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript.xcss
                  debug[9:14:30,952]: Such element exist in document
                  debug[9:14:30,952]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/ajax4jsf/javascript/scripts/form.js.xcss
                  debug[9:14:30,952]: Such element exist in document
                  debug[9:14:30,952]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript.xcss
                  debug[9:14:30,952]: Such element exist in document
                  debug[9:14:30,952]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/data-table.js.xcss
                  debug[9:14:30,952]: Such element exist in document
                  debug[9:14:30,953]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/utils.js.xcss
                  debug[9:14:30,953]: Such element exist in document
                  debug[9:14:30,953]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/browser_info.js.xcss
                  debug[9:14:30,953]: Such element exist in document
                  debug[9:14:30,953]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanel.js.xcss
                  debug[9:14:30,953]: Such element exist in document
                  debug[9:14:30,953]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.xcss
                  debug[9:14:30,954]: Such element exist in document
                  debug[9:14:30,954]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js.xcss
                  debug[9:14:30,954]: Such element exist in document
                  debug[9:14:30,954]: search for elements by name 'link' in element #document
                  debug[9:14:30,954]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:14:30,954]: Such element exist in document
                  debug[9:14:30,954]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:14:30,955]: Such element exist in document
                  debug[9:14:30,955]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:14:30,955]: Such element exist in document
                  debug[9:14:30,955]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAcss/separator.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:14:30,955]: Such element exist in document
                  debug[9:14:30,955]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:14:30,955]: Such element exist in document
                  debug[9:14:30,956]: call getElementById for id= org.ajax4jsf.queue_script
                  debug[9:14:30,956]: Update page part from call parameter for ID formEditar
                  debug[9:14:30,956]: call getElementById for id= formEditar
                  debug[9:14:30,958]: Replace content of node by outerHTML()
                  debug[9:14:30,960]: search for elements by name 'script' in element form
                  debug[9:14:30,960]: Scripts in updated part count : 1
                  debug[9:14:30,961]: Update part of page for Id: formEditar successful
                  debug[9:14:30,961]: call getElementById for id= ajax-view-state
                  debug[9:14:30,961]: Hidden JSF state fields: [object HTMLElement]
                  debug[9:14:30,961]: Namespace for hidden view-state input fields is undefined
                  debug[9:14:30,961]: search for elements by name 'input' in element span
                  debug[9:14:30,962]: Replace value for inputs: 10 by new values: 1
                  debug[9:14:30,962]: Input in response: javax.faces.ViewState
                  debug[9:14:30,962]: Found same input on page with type: hidden
                  debug[9:14:30,962]: Found same input on page with type: hidden
                  debug[9:14:30,962]: search for elements by name 'INPUT' in element span
                  debug[9:14:30,963]: Replace value for inputs: 10 by new values: 0
                  debug[9:14:30,963]: call getElementById for id= _A4J.AJAX.focus
                  debug[9:14:30,963]: No focus information in response
                  debug[9:14:31,070]: Evaluate script replaced area in document: function clear_formEditar() { _clearJSFFormParameters('formEditar','',['formEditar:_link_hidden_','formEditar:j_idcl']); } function clearFormHiddenParams_formEditar(){clear_formEditar();} function clearFormHiddenParams_formEditar(){clear_formEditar();} clear_formEditar(); //
                  debug[9:14:31,070]: Script evaluation succeeded
                  debug[9:14:31,071]: call getElementById for id= org.ajax4jsf.oncomplete
                  debug[9:14:31,071]: Processing updates finished, no oncomplete function to call

                  This is the output when selecting second entity:
                  debug[9:16:33,328]: Have Event [object Object] with properties: target: [object HTMLImageElement], srcElement: [object HTMLImageElement], type: click
                  debug[9:16:33,328]: Query preparation for form 'formListado' requested
                  debug[9:16:33,328]: Append hidden control formListado with value [formListado] and value attribute [formListado]
                  debug[9:16:33,328]: Append hidden control autoScroll with value [] and value attribute []
                  debug[9:16:33,328]: Append hidden control javax.faces.ViewState with value [VERY LARGE CHUNK OF CHARACTERS (CUTTED)] and value attribute [VERY LARGE CHUNK OF CHARACTERS (CUTTED)]
                  debug[9:16:33,329]: parameter componenteEditar with value 41
                  debug[9:16:33,329]: parameter formListado:j_id4:2:j_id9 with value formListado:j_id4:2:j_id9
                  debug[9:16:33,329]: Look up queue with default name
                  debug[9:16:33,330]: NEW AJAX REQUEST !!! with form: formListado
                  debug[9:16:33,330]: Start XmlHttpRequest
                  debug[9:16:33,330]: Reqest state : 1
                  debug[9:16:33,335]: QueryString: AJAXREQUEST=formListado%3Aj_id3&formListado=formListado&autoScroll=&javax.faces.ViewState=VERY-LARGE-CHUNK-OF-CHARACTERS-CUTTED&componenteEditar=41&formListado%3Aj_id4%3A2%3Aj_id9=formListado%3Aj_id4%3A2%3Aj_id9&
                  debug[9:16:33,460]: Reqest state : 2
                  debug[9:16:33,460]: Reqest state : 3
                  debug[9:16:33,460]: Reqest state : 3
                  debug[9:16:33,460]: Reqest state : 3
                  debug[9:16:33,460]: Reqest state : 3
                  debug[9:16:33,460]: Reqest state : 3
                  debug[9:16:33,462]: Reqest state : 3
                  debug[9:16:33,472]: Reqest state : 3
                  debug[9:16:33,472]: Reqest state : 3
                  debug[9:16:33,472]: Reqest state : 4
                  debug[9:16:33,473]: Reqest end with state 4
                  debug[9:16:33,473]: Response with content-type: text/xml;charset=UTF-8
                  debug[9:16:33,473]: Full response content: <html xmlns="http://www.w3.org/1999/xhtml"><head><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" media="rich-extended-skinning" rel="stylesheet" type="text/css" /><script src="/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/ajax4jsf/javascript/scripts/form.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/data-table.js.xcss" type="text/javascript"></script><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAcss/separator.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/utils.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/browser_info.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanel.js.xcss" type="text/javascript"></script><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.xcss" type="text/javascript"></script><link class="component" href="/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss" rel="stylesheet" type="text/css" /><script src="/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js.xcss" type="text/javascript"></script></head><body><form id="formEditar" name="formEditar" method="post" action="/bdrc-website/app/prueba.jsf">Brasil<input id="formEditar:nombre" name="formEditar:nombre" type="text" value="Argentina" /><a class="botonLink" href="#" id="formEditar:btnSubmit" name="formEditar:btnSubmit" onclick="A4J.AJAX.Submit('_viewRoot','formEditar',event,{'status':'statusGeneral','oncomplete':function(request,event,data){javascript:windowclose_ventanaEditar();},'similarityGroupingId':'formEditar:btnSubmit','parameters':{'formEditar:btnSubmit':'formEditar:btnSubmit'} ,'actionUrl':'/bdrc-website/app/prueba.jsf'} );return false;" style="float:right"><img src="/bdrc-website/img/accept.png" style="cursor:pointer; border: 0px" />Guardar</a><a class="botonLink" href="#" id="formEditar:btnCancelar" name="formEditar:btnCancelar" onclick="A4J.AJAX.Submit('_viewRoot','formEditar',event,{'status':'statusGeneral','oncomplete':function(request,event,data){javascript:windowclose_ventanaEditar();},'similarityGroupingId':'formEditar:btnCancelar','parameters':{'formEditar:btnCancelar':'formEditar:btnCancelar'} ,'actionUrl':'/bdrc-website/app/prueba.jsf'} );return false;" style="float:right"><img src="/bdrc-website/img/cancel.png" style="cursor:pointer; border: 0px" />Cancelar</a><input type="hidden" name="formEditar" value="formEditar" /><input type="hidden" name="autoScroll" value="" /><input type="hidden" name="formEditar:_link_hidden_" value="" /><input type="hidden" name="formEditar:j_idcl" value="" /><script type="text/javascript">function clear_formEditar() {
                   _clearJSFFormParameters('formEditar','',['formEditar:_link_hidden_','formEditar:j_idcl']);
                   }
                   function clearFormHiddenParams_formEditar(){clear_formEditar();}
                   function clearFormHiddenParams_formEditar(){clear_formEditar();}
                   clear_formEditar();
                   //</script><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="VERY LARGE CHUNK OF CHARACTERS (CUTTED)" /></form><meta name="Ajax-Update-Ids" content="formEditar" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="VERY LARGE CHUNK OF CHARACTERS (CUTTED)" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
                  debug[9:16:33,475]: Header Ajax-Expired not found, search in <meta>
                  debug[9:16:33,475]: search for elements by name 'meta' in element #document
                  debug[9:16:33,475]: Find <meta name='Ajax-Update-Ids' content='formEditar'>
                  debug[9:16:33,475]: Find <meta name='Ajax-Response' content='true'>
                  debug[9:16:33,476]: Header Ajax-Update-Ids not found, search in <meta>
                  debug[9:16:33,476]: search for elements by name 'meta' in element #document
                  debug[9:16:33,476]: Find <meta name='Ajax-Update-Ids' content='formEditar'>
                  debug[9:16:33,477]: Update page by list of rendered areas from response formEditar
                  debug[9:16:33,477]: search for elements by name 'script' in element #document
                  debug[9:16:33,477]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript.xcss
                  debug[9:16:33,477]: Such element exist in document
                  debug[9:16:33,477]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/ajax4jsf/javascript/scripts/form.js.xcss
                  debug[9:16:33,477]: Such element exist in document
                  debug[9:16:33,477]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.PrototypeScript.xcss
                  debug[9:16:33,478]: Such element exist in document
                  debug[9:16:33,478]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/data-table.js.xcss
                  debug[9:16:33,478]: Such element exist in document
                  debug[9:16:33,478]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/utils.js.xcss
                  debug[9:16:33,478]: Such element exist in document
                  debug[9:16:33,478]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/browser_info.js.xcss
                  debug[9:16:33,478]: Such element exist in document
                  debug[9:16:33,479]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanel.js.xcss
                  debug[9:16:33,479]: Such element exist in document
                  debug[9:16:33,479]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.xcss
                  debug[9:16:33,479]: Such element exist in document
                  debug[9:16:33,479]: <script> in response with src=/bdrc-website/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js.xcss
                  debug[9:16:33,479]: Such element exist in document
                  debug[9:16:33,480]: search for elements by name 'link' in element #document
                  debug[9:16:33,481]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:16:33,481]: Such element exist in document
                  debug[9:16:33,481]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:16:33,481]: Such element exist in document
                  debug[9:16:33,481]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAcss/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:16:33,481]: Such element exist in document
                  debug[9:16:33,482]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAcss/separator.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:16:33,482]: Such element exist in document
                  debug[9:16:33,482]: <link> in response with src=/bdrc-website/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.xcss
                  debug[9:16:33,482]: Such element exist in document
                  debug[9:16:33,482]: call getElementById for id= org.ajax4jsf.queue_script
                  debug[9:16:33,482]: Update page part from call parameter for ID formEditar
                  debug[9:16:33,482]: call getElementById for id= formEditar
                  debug[9:16:33,483]: Replace content of node by outerHTML()
                  debug[9:16:33,485]: search for elements by name 'script' in element form
                  debug[9:16:33,485]: Scripts in updated part count : 1
                  debug[9:16:33,485]: Update part of page for Id: formEditar successful
                  debug[9:16:33,486]: call getElementById for id= ajax-view-state
                  debug[9:16:33,486]: Hidden JSF state fields: [object HTMLElement]
                  debug[9:16:33,486]: Namespace for hidden view-state input fields is undefined
                  debug[9:16:33,486]: search for elements by name 'input' in element span
                  debug[9:16:33,486]: Replace value for inputs: 10 by new values: 1
                  debug[9:16:33,486]: Input in response: javax.faces.ViewState
                  debug[9:16:33,486]: Found same input on page with type: hidden
                  debug[9:16:33,487]: Found same input on page with type: hidden
                  debug[9:16:33,487]: search for elements by name 'INPUT' in element span
                  debug[9:16:33,487]: Replace value for inputs: 10 by new values: 0
                  debug[9:16:33,487]: call getElementById for id= _A4J.AJAX.focus
                  debug[9:16:33,487]: No focus information in response
                  debug[9:16:33,590]: Evaluate script replaced area in document: function clear_formEditar() { _clearJSFFormParameters('formEditar','',['formEditar:_link_hidden_','formEditar:j_idcl']); } function clearFormHiddenParams_formEditar(){clear_formEditar();} function clearFormHiddenParams_formEditar(){clear_formEditar();} clear_formEditar(); //
                  debug[9:16:33,591]: Script evaluation succeeded
                  debug[9:16:33,591]: call getElementById for id= org.ajax4jsf.oncomplete
                  debug[9:16:33,591]: Processing updates finished, no oncomplete function to call


                  I added a rich:messages and no errors where shown.


                  • 6. Re: Rerender of h:inputText fails
                    Ilya Shaikovsky Master

                    http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?tab=editDataTable

                    strange but almost the same code here. could you check if new value is actualy set by actionparam in your case? maybe try to change to f:setPropertyActionListener ..

                    • 7. Re: Rerender of h:inputText fails
                      Juan Ignacio Garzon Newbie

                      I debugged the application, and the value is correctly set. Remember that the h:outputText rerenders correctly.

                      I have uploaded some images in order to make it more understandable:

                      First, I have the list of Countries:
                      [img]http://juaniblog.com.ar/shot1.JPG[/img]

                      I select first country (Argentina):
                      [img]http://juaniblog.com.ar/shot2.JPG[/img]

                      I cancell and select a second country (Brasil):
                      [img]http://juaniblog.com.ar/shot3.JPG[/img]

                      As you can see, the h:outputText rerenders correctly, the problem is only with the h:inputText.

                      • 8. Re: Rerender of h:inputText fails
                        Ilya Shaikovsky Master

                        please check the moments I've asked above.

                        • 9. Re: Rerender of h:inputText fails
                          Ilya Shaikovsky Master

                          sorry I was not for this thread. :-[

                          • 10. Re: Rerender of h:inputText fails
                            Ilya Shaikovsky Master

                            I've missed that you use immediate control for cancel. This is common question. read this:

                            http://ishabalov.blogspot.com/2007/08/sad-story-about-uiinput.html

                            • 11. Re: Rerender of h:inputText fails
                              Juan Ignacio Garzon Newbie

                              ilya thank you very much for your help!! it's working now!! I've never thought it could be the cancel button.

                              If i remove the immediate=true or surround the button with an a4j:region it works.

                              Thanks also for the link!!

                              Regards,
                              Juan Ignacio