ICEfaces
  1. ICEfaces
  2. ICE-6260

ice:panelPopup 'draggable' attribute causes NullPointerException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0.0
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2.0 beta 2 in Tomcat 7 under jdk 6
    • Assignee Priority:
      P2

      Description

      An ice:panelPopup compat component running under ICEfaces 2 throws a NullPointerException when the 'draggable' attribute is set to "true". The popup is outside of a form, but inside the h:body. The header and body facets both contain very basic content.

      For example:
      <ice:panelPopup draggable="true" visible="true" styleClass="consolePopup">...

      Throws the following when visiting the page:
      java.lang.NullPointerException
      at com.icesoft.faces.component.ext.renderkit.GroupRenderer.getHiddenFieldName(GroupRenderer.java:396)
      at com.icesoft.faces.component.ext.renderkit.GroupRenderer.createHiddenField(GroupRenderer.java:385)
      at com.icesoft.faces.component.panelpopup.PanelPopupRenderer.encodeBegin(PanelPopupRenderer.java:151)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:823)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1611)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1616)
      at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:380)
      at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:126)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127)
      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:313)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:556)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:401)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:242)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
      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:619)

        Activity

        Hide
        Carlo Guglielmin added a comment -

        Whoops draggable does indeed work when inside a form, so that was my user error mistake. I thought I had tested it in a form, but apparently not. Closing the bug as invalid since there wasn't a problem to begin with.

        Show
        Carlo Guglielmin added a comment - Whoops draggable does indeed work when inside a form, so that was my user error mistake. I thought I had tested it in a form, but apparently not. Closing the bug as invalid since there wasn't a problem to begin with.

          People

          • Assignee:
            yip.ng
            Reporter:
            Carlo Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: