8 Replies Latest reply on Mar 22, 2007 4:48 PM by sergeysmirnov

    Repeater not updating changes in the backend ?

    edbras1

      Hellu,

      I almost got it all just like I wanted it... just one more thing that's not working.
      I am using the repeater the same way like the example online with the collapse/expand functionality. I just have form that expands so you can change values... which works pretty cool.
      Buttt.. in some cases, I undo changes made by the user. So, when the person clicks the expand I am replacing the updated item in the list with the old one.
      However, the repeater doesn't show the updates values :(... even if I expand/collapse a few times, whereas I see him reading the list of values..
      And I see he is requesting for the updated ajax keys which is the one that is updated..

      The funny thing is that I first have to collapse/expand another item... before seeing the changes of the previous one I was collapsing/expanding...

      Any idea why this is happening?
      So I don't see my changes I made in the backend untill I "touch" (expand or collapse) another item. What is does when I collapsing/expand is setting the update keys and indicating that it is collapsed/expanded, just like in the example...

      Hope you some idea what this might be..

      Cheers,
      Ed

        • 1. Re: Repeater not updating changes in the backend ?
          alexsmirnov

          This is a known issue, http://jira.jboss.com/jira/browse/AJSF-11 resolved after 1.1.0 release

          • 2. Re: Repeater not updating changes in the backend ?
            edbras1

            Ok, thanks for the answer, good news ;)
            I will download it, thanx

            • 3. Re: Repeater not updating changes in the backend ?
              edbras1

              BTW: where can I find this new release 1.1.1 ? as it doesnt appaear in the download section and don't see it in the tag SVN .

              Cheers,
              ed

              • 4. Re: Repeater not updating changes in the backend ?
                • 5. Re: Repeater not updating changes in the backend ?
                  edbras1

                  FYI:
                  I just returned to the "stable" 1.1.0 as I got a big exception when using the snapshot with the repeater.
                  Listed below.
                  I am sure it's the snapshot, as when I simple return the older jar, and not touch my code, it works fine.


                  java.lang.IllegalArgumentException: row is unavailable
                   at javax.faces.model.ListDataModel.getRowData(ListDataModel.java:66)
                   at org.ajax4jsf.ajax.repeat.SequenceDataModel.getRowData(SequenceDataModel.java:147)
                   at org.ajax4jsf.ajax.repeat.UIDataAdaptor.setupVariable(UIDataAdaptor.java:431)
                   at org.ajax4jsf.ajax.repeat.UIDataAdaptor.setRowKey(UIDataAdaptor.java:305)
                   at org.ajax4jsf.ajax.repeat.UIDataAdaptor.setRowKey(UIDataAdaptor.java:281)
                   at org.ajax4jsf.renderkit.html.RepeatRenderer.encodeChildren(RepeatRenderer.java:63)
                   at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
                   at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:414)
                   at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:400)
                   at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:417)
                   at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:400)
                   at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:417)
                   at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:400)
                   at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:78)
                   at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
                   at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
                   at org.ajax4jsf.framework.renderer.AjaxChildrenRenderer.encodeAjaxChild(AjaxChildrenRenderer.java:127)
                   at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:125)
                   at org.ajax4jsf.framework.ajax.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:536)
                   at org.ajax4jsf.framework.ajax.AjaxContext.renderAjaxRegion(AjaxContext.java:289)
                   at org.ajax4jsf.framework.ajax.AjaxContext$2.invoke(AjaxContext.java:207)
                   at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:78)
                   at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnComponent(AjaxContext.java:165)
                   at org.ajax4jsf.framework.ajax.AjaxContext.renderSubmittedAjaxRegion(AjaxContext.java:219)
                   at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:252)
                   at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
                   at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
                   at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:77)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
                   at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
                   at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
                   at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:61)
                   at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:233)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
                   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
                   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
                   at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
                   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509)
                   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
                   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
                   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
                   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
                   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
                   at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
                   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
                   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
                   at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
                   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
                   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
                   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
                   at java.lang.Thread.run(Thread.java:534)
                  


                  • 6. Re: Repeater not updating changes in the backend ?

                    what was the date of that snapshot?

                    • 7. Re: Repeater not updating changes in the backend ?
                      edbras1

                      ajax4jsf-1.1.1-20070315.131834-1.zip

                      • 8. Re: Repeater not updating changes in the backend ?

                        http://jira.jboss.com/jira/browse/AJSF-11 was resolved 03/15. So, this was included in 20070316 and up.