12 Replies Latest reply on Oct 10, 2007 9:28 AM by kevin.weisser

    Updates not showing on reRender

    kevin.weisser

      Currently, I can tell that the actionListeners on the poll and commandButton tag are being invoked but the page is not reRendering. I typically have to click the button twice to get the label to Update. Addtionally, I have to refresh the page for the poll to continue to update the page.

      Attached is my test JSP page:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <%-- jsf:pagecode language="java" location="/src/pagecode/Test.java" --%><%-- /jsf:pagecode --%>
      <%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
      <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
      <%@taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>


      test
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">



      <f:view>

      <h:form>
      <hx:scriptCollector id="scriptCollector1">
      <a4j:poll id="poll" interval="5000" enabled="#{ap.pollEnabled}" reRender="text1" actionListener="#{ap.doTimeUpdate}"/>
      <h:panelGrid id="grid1" styleClass="panelGrid" columns="2">
      <a4j:commandButton id="control2" value="#{ap.pollEnabled?'Stop':'Start'} Polling" reRender="control2,poll" actionListener="#{ap.doEnable}"/>
      <h:outputText id="text1" styleClass="outputText" value="#{ap.secondsElapsed} seconds"/>
      </h:panelGrid>
      </hx:scriptCollector>
      </h:form>

      </f:view>

        • 1. Re: Updates not showing on reRender

          what is the purpose of hx:scriptCollector ? What is the scope of #{ap}?

          • 2. Re: Updates not showing on reRender
            kevin.weisser

            hx:scriptCollector is not the culprit, because I get the same behavior with/without that tag in the page.

            #{ap} has session scope with pollEnabled being defined as a boolean and secondsElapsed being defined as an int. doEnable method simply updates pollEnabled to be the opposite of what it currently is, and secondsElapsed adds 10 to the current value. pollEnabled is initialized to be true, and secondsElapsed is initialized to be 0.

            Regards,

            Kevin

            • 3. Re: Updates not showing on reRender
              ilya_shaikovsky

              sIf there are any errors in a4j:log shown on reRender?

              please show you JSF/RF/Facelets/web container/Browser versions :)

              • 4. Re: Updates not showing on reRender
                kevin.weisser

                a4j:log is not not showing anything

                Attached are the versions of files I'm running:
                JSF v 1.2
                A4J v 1.1.1
                RF v 3.0.1
                Rational Software Architect 7.0
                IE v 6.0

                Here is my updated sample:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
                <%-- jsf:pagecode language="java" location="/src/pagecode/Test.java" --%><%-- /jsf:pagecode --%>
                <%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
                <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
                <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
                <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
                <%@taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>


                test
                <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">



                <f:view>

                <h:form>
                <a4j:log level="ALL" popup="true" width="400" height="200"/>
                <a4j:poll id="poll" interval="5000" enabled="#{ap.pollEnabled}" reRender="text1" actionListener="#{ap.doTimeUpdate}"/>
                <h:panelGrid id="grid1" styleClass="panelGrid" columns="2">
                <a4j:commandButton id="control2" value="#{ap.pollEnabled?'Stop':'Start'} Polling" reRender="control2,poll" actionListener="#{ap.doEnable}"/>
                <h:outputText id="text1" styleClass="outputText" value="#{ap.secondsElapsed} seconds"/>
                </h:panelGrid>
                </h:form>

                </f:view>


                Again a request is submitting initially via the poll command, because I can see an output on the within Rational's console. However I do not see the updated secondsElapsed field reRendered on the screen. In order to get the desired behavior, I typically will toggle the click the button to toggle the pollEnabled field (I have to double click the button or else nothing happens). Then I reload the page, and lastly I re-enable the polling via the button. After these steps are taken the screen is updated every 5 seconds by increments of 10 as would be expected.

                Your help is greatly appreciated.

                Regards,

                Kevin

                • 5. Re: Updates not showing on reRender
                  ilya_shaikovsky

                  I highly advice you to update RF to 3.1.0 GA. Many issues was solved from the 3.0.1..

                  • 6. Re: Updates not showing on reRender
                    kevin.weisser

                    I've taken your advice and upgraded to 3.1. Now, the polling seems to be working correctly (requests submitted every 5 seconds) and the values are getting updated in my bean correctly. I'm getting a NullPointerException when the it attempts to reRender the components. I've attached the stack trace, do you have any further thoughts?

                    [9/19/07 17:07:28:453 EDT] 0000001e ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /test.jsp. Exception thrown : java.lang.NullPointerException
                    at com.sun.faces.el.MixedELValueParser.getNextToken(MixedELValueParser.java:140)
                    at com.sun.faces.el.MixedELValueParser.parse(MixedELValueParser.java:123)
                    at com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:61)
                    at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:84)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:211)
                    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:171)
                    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)
                    at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
                    at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:143)
                    at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
                    at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
                    at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
                    at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
                    at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
                    at org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
                    at org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:122)
                    at org.ajax4jsf.component.UIAjaxRegion.encodeAjax(UIAjaxRegion.java:239)
                    at org.ajax4jsf.component.AjaxViewRoot$4.invoke(AjaxViewRoot.java:374)
                    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:78)
                    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnComponent(JsfOneOneInvoker.java:83)
                    at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:58)
                    at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
                    at org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:403)
                    at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:611)
                    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:548)
                    at com.sun.faces.taglib.jsf_core.ViewTag.doEndTag(ViewTag.java:216)
                    at com.ibm._jsp._test._jspx_meth_f_view_0(_test.java:304)
                    at com.ibm._jsp._test._jspService(_test.java:81)
                    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
                    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
                    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
                    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
                    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
                    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325)
                    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249)
                    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
                    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
                    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
                    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
                    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
                    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
                    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
                    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
                    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
                    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
                    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
                    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
                    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
                    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
                    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
                    at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
                    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
                    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
                    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
                    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
                    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

                    [9/19/07 17:07:31:062 EDT] 0000001e ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Faces Servlet. Exception thrown : javax.servlet.ServletException
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:166)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
                    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
                    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
                    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
                    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
                    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325)
                    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249)
                    at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
                    at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
                    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
                    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
                    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
                    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
                    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
                    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
                    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
                    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
                    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
                    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
                    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
                    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
                    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
                    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
                    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
                    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
                    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
                    at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
                    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
                    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
                    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
                    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
                    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

                    Regards,

                    Kevin

                    • 7. Re: Updates not showing on reRender
                      ilya_shaikovsky

                      did you removed ajax4jsf jar from classpath?

                      Are you sure that you are out of the possible cache problems?

                      • 8. Re: Updates not showing on reRender
                        kevin.weisser

                        ajax4jsf is not on the classpath or my buildpath. Only the 3 richface jar files are on my buildpath (with the required apache jar files).

                        I'm not sure what you mean by possible cache problems, but I've cleaned my project, deleted the project cache file, deleted all temporary Internet files, and stopped and started my local server.

                        I was able to successfully get another example running (uses a4j:support tag), but cannot get the a4j:poll or a4j:commandButton to work. I've simplified my jsp to only include the a4j:commandButton, and I'm still getting a NullPointerException after the actionListener has executed and it's trying to reRender the page components.

                        Here is my jsp:
                        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
                        <%-- jsf:pagecode language="java" location="/src/pagecode/Poll.java" --%><%-- /jsf:pagecode --%>
                        <%@page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
                        <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
                        <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
                        <%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>


                        poll
                        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">



                        <f:view>

                        <h:form>
                        <a4j:log level="ALL" popup="true" width="400" height="200"/>

                        <h:panelGrid id="grid1" styleClass="panelGrid" columns="2">
                        <a4j:commandButton id="control2" immediate="false" value="#{ap.pollEnabled == 'true'?'Stop':'Start'} Polling" reRender="control2" actionListener="#{ap.doEnable}"/>
                        <h:outputText id="text1" styleClass="outputText" value="#{ap.secondsElapsed} seconds"/>
                        </h:panelGrid>
                        </h:form>

                        </f:view>


                        Here is my Managed Bean:
                        /**
                        *
                        */
                        package pagecode;

                        import javax.faces.component.html.HtmlPanelGrid;
                        import org.ajax4jsf.component.html.HtmlAjaxCommandButton;
                        import javax.faces.component.html.HtmlOutputText;

                        /**
                        * @author keweisse
                        *
                        */
                        public class Poll extends PageCodeBase {

                        protected HtmlPanelGrid grid1;
                        protected HtmlAjaxCommandButton control2;
                        protected HtmlOutputText text1;

                        protected HtmlPanelGrid getGrid1() {
                        if (grid1 == null) {
                        grid1 = (HtmlPanelGrid) findComponentInRoot("grid1");
                        }
                        return grid1;
                        }

                        protected HtmlAjaxCommandButton getControl2() {
                        if (control2 == null) {
                        control2 = (HtmlAjaxCommandButton) findComponentInRoot("control2");
                        }
                        return control2;
                        }

                        protected HtmlOutputText getText1() {
                        if (text1 == null) {
                        text1 = (HtmlOutputText) findComponentInRoot("text1");
                        }
                        return text1;
                        }

                        }

                        Here is my Back Bean:
                        package ajax.beans;

                        import javax.faces.event.ActionEvent;

                        public class PollSample {

                        public boolean pollEnabled = false;
                        public int secondsElapsed = 0;

                        public boolean isPollEnabled() {
                        return pollEnabled;
                        }

                        public void setPollEnabled(boolean pollEnabled) {
                        this.pollEnabled = pollEnabled;
                        }

                        public int getSecondsElapsed() {
                        return secondsElapsed;
                        }

                        public void setSecondsElapsed(int secondsElapsed) {
                        this.secondsElapsed = secondsElapsed;
                        }

                        public void doEnable(ActionEvent event){
                        System.out.println("doEnable");
                        this.pollEnabled = !this.pollEnabled;
                        }

                        public void doTimeUpdate(ActionEvent event){
                        System.out.println("doTimeUpdate");
                        this.secondsElapsed = this.secondsElapsed + 10;
                        }

                        }


                        Here is my faces-config.xml:
                        <?xml version="1.0"?>

                        <!DOCTYPE faces-config PUBLIC
                        "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
                        "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">

                        <!-- =========== FULL CONFIGURATION FILE ================================== -->

                        <faces-config>

                        <state-manager>com.ibm.faces.application.DevelopmentStateManager</state-manager>
                        <property-resolver>com.ibm.faces.databind.SelectItemsPropResolver</property-resolver>
                        <variable-resolver>com.ibm.faces.databind.SelectItemsVarResolver</variable-resolver>


                        <managed-bean>
                        <managed-bean-name>ap</managed-bean-name>
                        <managed-bean-class>ajax.beans.PollSample</managed-bean-class>
                        <managed-bean-scope>session</managed-bean-scope>
                        </managed-bean>
                        <managed-bean>
                        <managed-bean-name>pc_Poll</managed-bean-name>
                        <managed-bean-class>pagecode.Poll</managed-bean-class>
                        <managed-bean-scope>request</managed-bean-scope>
                        </managed-bean>

                        <phase-listener>com.ibm.faces.webapp.ValueResourcePhaseListener</phase-listener>

                        </faces-config>

                        • 9. Re: Updates not showing on reRender
                          kevin.weisser

                          Does anyone have any additional thoughts/input to help me debug this issue? Is RichFaces 3.1 compatible with Rational Software Architect 7.0?

                          Regards,

                          Kevin

                          • 10. Re: Updates not showing on reRender
                            kevin.weisser

                            As an additional piece of information, I've determined that NullPointerException is occurring during the RENDER_RESPONSE phase of the lifecycle.

                            More specifically I'm getting a NullPointerException during the beforePhase portion when attempting:
                            at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1405)
                            at org.ajax4jsf.renderkit.AjaxCommandRendererBase.getValue(AjaxCommandRendererBase.java:82)
                            at org.ajax4jsf.renderkit.html.CommandButtonRenderer.doEncodeEnd(CommandButtonRenderer.java:115)
                            at org.ajax4jsf.renderkit.html.CommandButtonRenderer.doEncodeEnd(CommandButtonRenderer.java:161)

                            And during the afterPhase while trying to go back through the filter.

                            I'm also noticing some incident streams being opened and written to.

                            Regards,

                            Kevin

                            • 11. Re: Updates not showing on reRender
                              abelevich

                              Hi! Could you attach in jira minimal war there are bug is reproduced? http://jira.jboss.com/jira/browse/RF-1080

                              • 12. Re: Updates not showing on reRender
                                kevin.weisser

                                Requested file was attached to JIRA.