myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fu wanhong <fuwanh...@gmail.com>
Subject How to refresh two scrollers in a page?
Date Tue, 20 Dec 2005 12:51:49 GMT
Hi,
I have a JSP page, it contains a panelGrid, in this panelGrid has two
scrollers and one dataTable, the source code as below:


   <h:panelGrid>
  <t:saveState id="list" value="#{searchInvStmtPage}"/>
  <e:dataScroller for="statement" />
  <t:dataTable id="statement" value="#{searchInvStmtPage.stmtDataModel}"
var="statement"
   rowClasses="tableOddRow,tableEvenRow" styleClass="dataTable" width="100%"
rowIndexVar="i" rows="10">
   <h:column>
    <f:facet name="header">
     <h:outputText value="No. " />
    </f:facet>
    <h:outputText value="#{i+1}" />
   </h:column>
   <h:column>
    <f:facet name="header">
     <h:outputText value="Message No. " />
    </f:facet>
    <h:commandLink id="edit" action="#{searchInvStmtPage.editStatement}">
        <h:outputText value="#{statement.statementNumber}" />
        <t:updateActionListener property="#{
searchInvStmtPage.statement.statementId}" value="#{statement.statementId}"
/>
       </h:commandLink>
   </h:column>

   <h:column>
    <f:facet name="header">
     <h:outputText value="Warehouse No. " />
    </f:facet>
    <h:outputText value="#{statement.licenceNo}" />
   </h:column>
   <h:column>
    <f:facet name="header">
     <h:outputText value="Create Date" />
    </f:facet>
    <h:outputText value="#{statement.createdDate}" />
   </h:column>
   <h:column>
    <f:facet name="header">
     <h:outputText value="Mode of Creation " />
    </f:facet>
    <h:outputText value="#{statement.statementType}" />
   </h:column>
   <h:column>
    <f:facet name="header">
     <h:outputText value="Message Status* " />
    </f:facet>
    <h:outputText value="#{statement.status}" />
   </h:column>
  </t:dataTable>
  <e:dataScroller for="statement"/>
  </h:panelGrid>

The e:dataScroller is the same as t:dataScroller, And in this page still has
a search button and some textboxs that can input some search parameters,now
it's OK to click search button at the first time , but when I alter some
parameters then click search button, the second scroller can
update correctly, but the first one still hold the states previously.
Anyone who have method to synchronize this two scroller states or other way
to resolve this issues?

Thanks in advance!

Mime
View raw message