9 Replies Latest reply on Mar 30, 2011 8:19 AM by nbelaevski

    rich:dataTable, action not fired after using browser back button

    christian.yttesen

      Hi,

       

      Running RichFaces 3.3.3.Final.

      Seen in Firefox 3.6.15 and IE 9

       

      Having a <rich:dataTable> supporting a "View details" button editing the selected row - stops working if I hit the browser back-button and selects a different row.

       

      My page is divided in two sections:

       

      <h:panelGroup layout="block" rendered="#{not subscriptionTabBean.editMode}">

      ... dataTable

      </h:panelGroup>

       

      And

       

      <h:panelGroup layout="block" rendered="#{subscriptionTabBean.editMode}">

      ... row edit

      </h:panelGroup>

       

      Clicking on the "view details" button sets the row object using <f:setPropertyActionListener /> and sets the editMode flag to true.

       

      This works fine if I use the controls on the page (View details, Show list) - but clicking the "Browser back button"  or "Alt + arrow left" (instead of the "Show list commandLink" and selecting a different row will not invoke my action the second time but simply redisplay the "old" item.

       

      I have a PhaseListener implemented and clicking the "View details" invokes the listener but not my action.

       

      Any clues?

       

      Regards,

      Christian Yttesen