This content has been marked as final. 
    
Show                 8 replies
    
- 
        1. Re: reRender problem with datascrollersergeysmirnov Jun 28, 2007 12:23 PM (in response to orribl)probably, it is because of the form validation failed due the inputText validators. Does it make difference if you inputText is not empty? 
- 
        2. Re: reRender problem with datascrollerorribl Jun 28, 2007 12:43 PM (in response to orribl)Hi, 
 I found a (unsatisfactory) solution:
 When I place the datascroller after the dataTable<rich:datascroller id="dsMseItems" for="mseItems" maxPages="20" /> <rich:dataTable rows="10" id="mseItems" value="#{sessionBackingBean.mseItems}" var="item"> ... </rich:dataTable>
 it works as expected. Is it possible that the datascroller gets data from the rendered dataTable?
 Does anybody know if there's a way to place the dataScroller before the dataTable...?
- 
        3. Re: reRender problem with datascrollerorribl Jun 28, 2007 12:44 PM (in response to orribl)Of course I mean <rich:dataTable rows="10" id="mseItems" value="#{sessionBackingBean.mseItems}" var="item"> ... </rich:dataTable> <rich:datascroller id="dsMseItems" for="mseItems" maxPages="20" />
 ;)
- 
        4. Re: reRender problem with datascrollersergeysmirnov Jun 28, 2007 12:47 PM (in response to orribl)Oh, OK. It looks like you use JSF 1.1 . If so, it is very famous problem of it. 
- 
        5. Re: reRender problem with datascrollerorribl Jun 29, 2007 12:57 AM (in response to orribl)Hi, 
 You're right, I'm using MyFaces 1.5 (which implementes the jsj1.1 specification).
 Do you know a way to solve the problem with this implementation?
- 
        6. Re: reRender problem with datascrollerilya_shaikovsky Jun 29, 2007 9:22 AM (in response to orribl)I've wrapped your <rich:datascroller id="dsMseItems" for="mseItems" maxPages="20" /> <rich:dataTable rows="10" id="mseItems" value="#{sessionBackingBean.mseItems}" var="item"> ... </rich:dataTable>
 with a4j:outputPanel component and it starts works as expected.
- 
        7. Re: reRender problem with datascrollerorribl Jul 2, 2007 2:57 AM (in response to orribl)Hi ilya_shaikovsky, 
 that doesn't work for me, do you also work with myfaces 1.5 (and with the 1.1. jsf implementation)?
- 
        8. Re: reRender problem with datascrollerilya_shaikovsky Jul 4, 2007 7:06 AM (in response to orribl)So my test code: <h:form id="form"> <h:inputText value="#{capitalsBean.rows}" required="true" maxlength="4" size="4" id="textfield"> </h:inputText> <a4j:commandButton id="showItems" value="add/remove rows" reRender="table, scroller" /> <a4j:outputPanel> <rich:datascroller id="scroller" for="table" maxPages="20" /> <rich:dataTable rows="#{capitalsBean.rows}" id="table" value="#{capitalsBean.capitals}" var="cap"> <rich:column> <h:outputText value="#{cap.name}"></h:outputText> </rich:column> <rich:column> <h:outputText value="#{cap.state}"></h:outputText> </rich:column> </rich:dataTable> </a4j:outputPanel> </h:form>
 So In my code I'm changing the number of rows. And the scrioller updates successfully for me.
 My Environment:
 MyFaces Implementation-Version: 1.1.5
 No facelets. (My be you've uses?)
 Tomcat 5.5.17
 Rich Faces and ajax4jsf 3.0.2 and 1.1.2 SNAPSHOTS.
 
    