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

        Krashan Brahmanjara created issue -
        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
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #16053 Tue Mar 18 11:28:57 MDT 2008 philip.breau ICE-2733 - check for valid input for autoPosition attribute
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/panelpopup/PanelPopupRenderer.java
        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
        Philip Breau made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.7 [ 10080 ]
        Resolution Fixed [ 1 ]
        Philip Breau made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Ken Fyten made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 1.7RC1 [ 10123 ]
        Fix Version/s 1.7 [ 10080 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: