ICEfaces
  1. ICEfaces
  2. ICE-2733

PanelPopup crash with autoPosition and resizable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7Beta1
    • Fix Version/s: 1.7RC1, 1.7
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICefaces from current trunk - date 11.02.08

      Description

      When to panelPopup user add attribute resizable="true" and autoPosition="true" icefaces get an error.

      <ice:panelPopup id="messageDiv" modal="true"
                visible="#{bean.showMessagePanel}"
                style="z-index:1001; width: 400px; height: 180px; top:30%; left:30%;"
                autoPosition="true" resizable="true" >

      SEVERE: Servlet.service() for servlet jsp threw exception
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(Unknown Source)
      at com.icesoft.faces.component.panelpopup.PanelPopupRenderer.encodeBegin(PanelPopupRenderer.java:241)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:536)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:543)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:543)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:543)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:543)
      at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:286)
      at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
      at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
      at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:162)

        Activity

        Hide
        Krashan Brahmanjara added a comment -

        Also when resizable="true" is alone and panelPopup contain for example any ice:panelCollapsible
        it panelPopup is still not auto resizable

        Show
        Krashan Brahmanjara added a comment - Also when resizable="true" is alone and panelPopup contain for example any ice:panelCollapsible it panelPopup is still not auto resizable
        Hide
        Philip Breau added a comment -

        the autoPosition attribute takes an x and y value, not a boolean

        Show
        Philip Breau added a comment - the autoPosition attribute takes an x and y value, not a boolean
        Hide
        Philip Breau added a comment -

        checking for valid input now - rev 16053

        Show
        Philip Breau added a comment - checking for valid input now - rev 16053

          People

          • Assignee:
            Unassigned
            Reporter:
            Krashan Brahmanjara
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: