1 Reply Latest reply on Dec 13, 2007 11:30 AM by Jan Blankenhorn

    Datascroller opens last page

    Jan Blankenhorn Newbie

      Hey folks,

      I have a real big problem with a rich:datscroller component.
      This used to work for the last few weeks.

      The Setup is:

      richfaces 3.1.2
      myfaces 1.1.4
      facelets


      The situation is:

      I have a page with a rich:table and an associated datascroller.

      From inside the table i open a subpage which shows the content of the selected row.
      When i return from this detail page using the brwoser "back-button" and i try to use the datascroller, the browser re-loads the last page.

      If i return from the subpage using my breadcrumb-component, this effect does not occur.


      I hope you understand the problem.

      Here is the code:

      <rich:dataTable id="resultList" rows="6"
       var="record" styleClass="immotabelle" value="#{immoSearchBean.searchResultList}"
       headerClass="immoheader" footerClass="immofooter"
       binding="#{immoSearchBean.resultTableData}" columnClasses="immocell"
       renderd="#{resultCount} > 0">
      
       <f:facet name="header">
       <rich:columnGroup >
       <rich:column styleClass="immoheadercell">
       <rich:spacer />
       </rich:column>
       <rich:column styleClass="immoheadercell immoheaderCol2">
       <h:outputText value="#{bundle.sr_tabHeaderNameOrt}" />
       </rich:column>
       <rich:column styleClass="immoheadercell immoheaderCol3">
       <h:outputText value="#{bundle.sr_tabHeaderFlachePreis}" />
       </rich:column>
       <rich:column styleClass="immoheadercell immoheaderCol4">
       <h:outputText value="#{bundle.sr_tabHeaderGeaendert}" />
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column styleClass="bild" rowspan="2">
       <h:commandLink action="#{immoSearchBean.openDetail}"> <h:graphicImage value="/images/immo01.jpg"></h:graphicImage></h:commandLink>
       </rich:column>
       <rich:column colspan="2" styleClass="immoheadline">
       <h:selectBooleanCheckbox id="checkd_3f" style="float: left; margin-right: 5px;" title="Dieses Objekt auswählen"/><h2><h:commandLink value="#{record.objectDescription}" action="#{immoSearchBean.openDetail}"></h:commandLink></h2>
       </rich:column>
       <rich:column styleClass="immoheadline">
       <h:panelGroup rendered="#{record.modified}">
       <span class="neu">
       <h:outputText value="#{bundle.sr_aktualisiert}"></h:outputText>
       </span>
       </h:panelGroup>
       <h:panelGroup rendered="#{record.new}">
       <span class="neu">
       <h:outputText value="#{bundle.sr_neu}"></h:outputText>
       </span>
       </h:panelGroup>
       </rich:column>
       <rich:column breakBefore="true" styleClass="immobeschreibung">
       <h:outputText value="#{bundle.sr_ort}: "></h:outputText>
       <h:outputText value="#{record.city}"></h:outputText>
       <br/>
       <h:outputText value="#{bundle.sr_landkreis}: "></h:outputText>
       <h:outputText value="#{record.county}"></h:outputText>
       </rich:column>
       <rich:column>
       <h:outputText value="#{record.useOpportunities}"></h:outputText>
       <br/>
       <strong>
       <h:outputText value="#{record.mainAreaFrom}"></h:outputText>
       <h:outputText value=" - "></h:outputText>
       <h:outputText value="#{record.mainAreaTo}"></h:outputText>
       </strong>
       <h:outputText value="#{bundle.sr_flaecheEinheit}"></h:outputText>
      
       <h:panelGroup rendered="#{record.useOpportunitiesBeside}">
       <br/>
       <h:outputText value="#{record.useOpportunitiesBeside}" ></h:outputText>
       <strong>
       <h:outputText value="#{record.besidesAreaFrom}"></h:outputText>
       <h:outputText value=" - "></h:outputText>
       <h:outputText value="#{record.besidesAreaTo}"></h:outputText>
       </strong>
       <h:outputText value="#{bundle.sr_flaecheEinheit}"></h:outputText>
       </h:panelGroup>
       <h:panelGroup rendered="#{record.mainAreaRent > 0}">
       <br/>
       <strong><h:outputText value="#{record.mainAreaRent} "></h:outputText></strong>
       <h:outputText value="#{record.mainAreaRentUnit}"></h:outputText>
       </h:panelGroup>
      
       </rich:column>
       <rich:column>
       <div class="details">
       <h:commandLink value="#{bundle.sr_details}" action="#{immoSearchBean.openDetail}" styleClass="weiter"></h:commandLink>
       <br />
       <h:commandLink value="#{bundle.sr_merken}" styleClass="weiter"></h:commandLink>
       </div>
       </rich:column>
      
       <f:facet name="footer">
       <rich:datascroller align="left" for="resultList" tableStyleClass="immoResultScroller" />
       </f:facet>
       </rich:dataTable>