0 Replies Latest reply on Mar 20, 2010 8:07 PM by kimda

    Browser's back button displays "before-updated" value

    kimda
      Hi,

      I have very bizarre behavior of a4j:commandButton.
      I have dataTable that displays numeric values from DB table and I edit by popping up rich modal panel.
      After editing, if I go other page and come back by pressing browser's back button, the updated value changes back to the value that wasn't updated.

      Ex)
      If I hit "Save" button from below, back ground page displays correct updated value.

      '
      <a4j:commandButton id="save" value="Save"
                                    action="#{countyHome.update}"
                                    reRender="kpataFormMp1, kpata, panel"
                                    data="#{facesContext.maximumSeverity.ordinal ge 2}"
                                    oncomplete="if(data == false) Richfaces.hideModalPanel('kpataMp1');">
      '
      and I go to other page and come back by pressing browser's back button, the value changes back to the original value.
      Why am I having this behavior? What is solution for that?


      If I use this, I don't have that problem, but I am using the above for validation purpose.

      '
      <h:commandButton id="savetest" value="h:commandButton Save"
                                    action="#{countyHome.update}" />
                          
           
      I hope somebody has solution for this.

      thanks in advance.

      Daniel