3 Replies Latest reply on Oct 22, 2008 5:47 AM by Nick Belaevski

    No content in response for replace current page

    Tobias Kilian Newbie

      Hi!

      i have a strange error, i have an a4j:commandButton which triggers a server side action and should then refresh part of the page. well nothing special so far. the action is triggered and as far as the server side log and the debugger tell me, everything is normal, but the client is not refreshed and a4j:log has this entry:

      debug[11:51:26,088]: NEW AJAX REQUEST !!! with form :editAssociationInclude:editAssociationForm
      debug[11:51:26,089]: Append hidden control editAssociationInclude:editAssociationForm with value [editAssociationInclude:editAssociationForm] and value attribute [editAssociationInclude:editAssociationForm]
      debug[11:51:26,089]: Append select-one control editAssociationInclude:editAssociationForm:decorationAssociationPanel:Benutzer with value [7] and value attribute [null]
      debug[11:51:26,090]: Append hidden control javax.faces.ViewState with value [j_id5] and value attribute [j_id5]
      debug[11:51:26,090]: parameter editAssociationInclude:editAssociationForm:saveAssociationButton with value editAssociationInclude:editAssociationForm:saveAssociationButton
      debug[11:51:26,090]: parameter conversationPropagation with value join
      debug[11:51:26,119]: Start XmlHttpRequest
      debug[11:51:26,120]: Reqest state : 1
      debug[11:51:26,120]: QueryString: AJAXREQUEST=editAssociationInclude%3AeditAssociationRegion&
      editAssociationInclude%3AeditAssociationForm=editAssociationInclude%3AeditAssociationForm&
      editAssociationInclude%3AeditAssociationForm%3AdecorationAssociationPanel%3ABenutzer=7&
      javax.faces.ViewState=j_id5& editAssociationInclude%3AeditAssociationForm%3AsaveAssociationButton=editAssociationInclude%3AeditAssociationForm%3AsaveAssociationButton&conversationPropagation=join&
      debug[11:51:26,123]: Reqest state : 1
      debug[11:51:28,022]: Reqest state : 2
      debug[11:51:28,023]: Reqest state : 4
      debug[11:51:28,023]: Reqest end with state 4
      debug[11:51:28,024]: Response with content-type: text/html;charset=UTF-8
      debug[11:51:28,024]: Full response content:
      debug[11:51:28,024]: Header Ajax-Response not found, search in <meta>
      debug[11:51:28,025]: Header Ajax-Expired not found, search in <meta>
      warn[11:51:28,025]: No ajax response header
      debug[11:51:28,025]: Header Location not found, search in <meta>
      warn[11:51:28,026]: No content in response for replace current page
      


      The source code is a bit complicated but the important things are:
      <rich:modalPanel ..>
       <a4j:region..>
       <h:form..>
      ...
      <a4j:outputPanel id="actionButtons" layout="block" ajaxRendered="true">
      
       <a4j:commandButton id="saveAssociationButton"
       value="#{messages['save']}"
       disabled="#{empty oneToManyAssociationTable.otherSideEntity}"
       action="#{oneToManyAssociationTable.onAcceptChanges()}"
       status="modalStatus"
       reRender="#{reRenderOnSave}"
       eventQueue="defaultQueue"
       <f:param name="conversationPropagation" value="join"/>
       </a4j:commandButton>
       </a4j:outputPanel>
      
       </h:form>
       </a4j:region>
      </rich:modalPanel>
      


      I think there is nothing special to it, except perhaps that the button is reRendered to update its disabled state. The action method is called and returns (void).

      perhaps i should mention the server has this warning:
      WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.


      So I dont know why the client gets no (useful??) response, I hope you have some hints on why this could occur.

      Thanks,
      Tobias Kilian