9 Replies Latest reply on Jan 21, 2010 7:44 AM by ilya_shaikovsky

    Rerender not working for a rich:modalPanel

      Hi I am trying to reRender and show a modalPanel after performaing a action

      Code which I am trying to exectute:

      <!--- on click on this button some action should execute, after completion of My ModalPanel should get be reRendered and shown if some messages are present --->

      <!-- Button-->

      <a4j:commandButton id="updateRtodBtn"  value="Update"
            style="margin: 0 0 0 0;" ajaxSingle="true"  status="ajaxStatus"
            reRender="ReturnForRefundForm,refundApplicationStatusMsgPnl"
           action="#{ReturnForRefundApplication.updateReturnDetails()}"
            oncomplete="if (document.getElementById('hasMessagesInRTForm').value=='true') {             Richfaces.showModalPanel('refundApplicationStatusMsgPnl', {width:300});  }  onAjaxRequestComplete();" />

       

      <!-- modal panel displaying the status of a operation -->
           <rich:modalPanel id="refundApplicationStatusMsgPnl" height="135">
              <f:facet name="header">
                  <h:outputLabel  id="refundApplicationStatusMsgPnlHdr" value="#{ReturnForRefundApplication.statusMessageHeader}"/>       
              </f:facet>
              <f:facet name="controls">
                  <h:graphicImage value="/img/close.jpg" style="cursor:pointer"  onclick="Richfaces.hideModalPanel('refundApplicationStatusMsgPnl')" alt="#{messages['gen.close']}"/>
              </f:facet>
              <s:div id="refundApplicationStatusMsgDiv" style="height:100%;width:100%;text-align:center;">   
                  <h:graphicImage value="/img/info.gif" alt="#{messages['gen.messageTypeInfo']}" style="vertical-align:middle;" rendered="#{ReturnForRefundApplication.statusMessageType == 'INFO'}"/>
                  <h:graphicImage value="/img/err.gif" alt="#{messages['gen.messageTypeInfo']}" style="vertical-align:middle;" rendered="#{ReturnForRefundApplication.statusMessageType == 'ERR'}"/>
                  <h:graphicImage value="/img/warning.gif" alt="#{messages['gen.messageTypeInfo']}" style="vertical-align:middle;" rendered="#{ReturnForRefundApplication.statusMessageType == 'WARN'}"/>
                  <rich:spacer width="15px"/>
                  <h:outputLabel value="#{ReturnForRefundApplication.statusMessage}"/>
                  <br/>
                  <br/>
                  <h:form>
                 
                  <a4j:commandButton value="#{messages['gen.ok']}" action="#"
                  onclick="javascript:Richfaces.hideModalPanel('refundApplicationStatusMsgPnl')" style="width:70px;"
                  oncomplete="onAjaxRequestComplete();" status="ajaxStatus"/>
                 
                  </h:form>
              </s:div>
           </rich:modalPanel>

       

       

      My <a4j:log/> Panel shows error as :

      error[16:55:05,970]: New node for ID refundApplicationStatusMsgPnl is not present in response

       

      My modal Panel is showing after completion of action, but it is not reRrendering