Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-9089

Popup panel: IllegalArgumentException when minHeight or minWidth is null

    Details

    • Steps to Reproduce:
      Hide

      Set minWidth/minHeight to expression evaluating to null, e.g. minWidth="#

      {null}".

      <h:commandButton value="Call the popup">
      <rich:componentControl target="popupPanel" operation="show" />
      </h:commandButton>

      <rich:popupPanel id="popupPanel" header="header" height="300" left="auto" moveable="true" minWidth="#{null}

      " resizeable="true" top="auto" width="300">
      <f:facet name="controls">
      <h:outputLink value="#" onclick="#

      {rich:component('popupPanel')}

      .hide(); return false;">X</h:outputLink>
      </f:facet>
      <p>some text</p>
      </rich:popupPanel>

      Show
      Set minWidth/minHeight to expression evaluating to null, e.g. minWidth="# {null}". <h:commandButton value="Call the popup"> <rich:componentControl target="popupPanel" operation="show" /> </h:commandButton> <rich:popupPanel id="popupPanel" header="header" height="300" left="auto" moveable="true" minWidth="#{null} " resizeable="true" top="auto" width="300"> <f:facet name="controls"> <h:outputLink value="#" onclick="# {rich:component('popupPanel')} .hide(); return false;">X</h:outputLink> </f:facet> <p>some text</p> </rich:popupPanel>

      Description

      An IllegalArgumentException is thrown when minWidth/minHeight is evaluated to null.

      java.lang.IllegalArgumentException
      at org.richfaces.renderkit.html.PopupPanelBaseRenderer.checkOptions(PopupPanelBaseRenderer.java:122)
      at org.richfaces.renderkit.html.PopupPanelRenderer.encodeEnd(PopupPanelRenderer.java:85)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1620)
      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.StandardWrapper.service(StandardWrapper.java:1523)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      at org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      at java.lang.Thread.run(Thread.java:619)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  amarkhel Andrey Markhel
                  Reporter:
                  ppitonak Pavol Pitoňák
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: