ICEmobile
  1. ICEmobile
  2. MOBI-835

NPE when using CommandButton.openContentPane

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3 Final
    • Fix Version/s: 1.3.1
    • Component/s: Faces
    • Labels:
      None
    • Environment:
      JSF

      Description

      When using the openContentPane attribute of the commandButton the following exception occurs:

      java.lang.NullPointerException
      at org.icemobile.renderkit.ButtonCoreRenderer.encodeEnd(ButtonCoreRenderer.java:135)
      at org.icefaces.mobi.component.button.CommandButtonRenderer.encodeEnd(CommandButtonRenderer.java:173)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:881)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
      at org.icefaces.mobi.utils.JSFUtils.renderLayoutChild(JSFUtils.java:241)
      at org.icefaces.mobi.component.pagepanel.PagePanelRenderer.encodeEnd(PagePanelRenderer.java:89)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:881)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
      at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:49)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:439)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1812)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)

        Activity

        Hide
        Philip Breau added a comment -

        test case checked in: mobitest/layout/contentStackMenu/contentStackMenuWithCommandButton.jsf

        Show
        Philip Breau added a comment - test case checked in: mobitest/layout/contentStackMenu/contentStackMenuWithCommandButton.jsf
        Hide
        Philip Breau added a comment -

        Fix checked in with:

        Revision: 38338
        Author: philip.breau
        Date: October-02-13 4:53:18 PM
        Message:
        MOBI-898 Separate JS files for each component are causing too many requests and slowing down the page load

        • coalesce the accordion, menuButton, flipswitch, panelPopup, splitPane, and tabSet js files into component.js

          Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/component/IAccordion.java
          Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/component/ITabSet.java
          Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/renderkit/AccordionCoreRenderer.java
          Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/renderkit/ContentPaneCoreRenderer.java
          Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/renderkit/TabSetCoreRenderer.java
          Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.accordion
          Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.button
          Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.flipswitch
          Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.panelpopup
          Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.splitpane
          Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.tabset
          Modified : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.util/component.js
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/accordion/Accordion.java
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/button/CommandButtonRenderer.java
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitchRenderer.java
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/menubutton/MenuButtonRenderer.java
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/panelpopup/PanelPopupRenderer.java
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/splitpane/SplitPaneRenderer.java
          Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/tabset/TabSet.java

        Show
        Philip Breau added a comment - Fix checked in with: Revision: 38338 Author: philip.breau Date: October-02-13 4:53:18 PM Message: MOBI-898 Separate JS files for each component are causing too many requests and slowing down the page load coalesce the accordion, menuButton, flipswitch, panelPopup, splitPane, and tabSet js files into component.js Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/component/IAccordion.java Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/component/ITabSet.java Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/renderkit/AccordionCoreRenderer.java Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/renderkit/ContentPaneCoreRenderer.java Modified : /icemobile/trunk/icemobile/core/src/main/java/org/icemobile/renderkit/TabSetCoreRenderer.java Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.accordion Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.button Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.flipswitch Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.panelpopup Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.splitpane Deleted : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.tabset Modified : /icemobile/trunk/icemobile/jsf/components/component/resources/org.icefaces.component.util/component.js Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/accordion/Accordion.java Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/button/CommandButtonRenderer.java Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/flipswitch/FlipSwitchRenderer.java Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/menubutton/MenuButtonRenderer.java Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/panelpopup/PanelPopupRenderer.java Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/splitpane/SplitPaneRenderer.java Modified : /icemobile/trunk/icemobile/jsf/components/component/src/org/icefaces/mobi/component/tabset/TabSet.java

          People

          • Assignee:
            Philip Breau
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: