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

Metamer: rich:toolTip: targetted example causes NPE for some IDs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.1.0.Milestone2
    • Fix Version/s: 4.2.2.Final
    • Component/s: component-output
    • Labels:
      None
    • Environment:
    • Steps to Reproduce:
      Hide

      1. Open targetted example in Metamer: faces/components/richTooltip/targetting.xhtml
      2. Set as target attribute following value: "regular-div" - this is the first div on the top of target elemens to display tooltip
      3. Blur attribute input and exception (error page) appears instead of Metamer page for tooltip example

      Show
      1. Open targetted example in Metamer: faces/components/richTooltip/targetting.xhtml 2. Set as target attribute following value: "regular-div" - this is the first div on the top of target elemens to display tooltip 3. Blur attribute input and exception (error page) appears instead of Metamer page for tooltip example
    • Workaround Description:
      Hide

      Similar example or target is with clientID = 'form:jsf-div' on the same page, seems that nothing else than ID type is different and this work well.

      Show
      Similar example or target is with clientID = 'form:jsf-div' on the same page, seems that nothing else than ID type is different and this work well.

      Description

      In example for targetted tooltip (faces/components/richTooltip/targetting.xhtml) causes attribute @target set to "regular-div" - which is on off alternative targets, in this case with ID
      without prefix by enclosing form ID such as "form:regular-div" following exception:

      javax.servlet.ServletException
      	javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
      	org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
      	org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
      root cause
       
      java.lang.NullPointerException
      	org.richfaces.renderkit.html.TooltipRenderer.getScriptObjectOptions(TooltipRenderer.java:198)
      	org.richfaces.renderkit.html.TooltipRenderer.getScriptObject(TooltipRenderer.java:168)
      	org.richfaces.renderkit.html.TooltipRenderer.getScriptObject(TooltipRenderer.java:56)
      	org.richfaces.renderkit.html.DivPanelRenderer.writeJavaScript(DivPanelRenderer.java:126)
      	org.richfaces.renderkit.html.TooltipRenderer.doEncodeEnd(TooltipRenderer.java:233)
      	org.richfaces.renderkit.RendererBase.encodeEnd(RendererBase.java:175)
      	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
      	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)
      	org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:276)
      	org.richfaces.renderkit.html.PanelRenderer.encodeEnd(PanelRenderer.java:181)
      	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
      	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)
      	javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
      	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
      	com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
      	com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
      	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
      	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
      	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
      	javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
      	com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
      	com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
      	javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
      	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
      	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
      	javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
      	org.richfaces.tests.metamer.TestIdentityFilter.doFilter(TestIdentityFilter.java:93)
      	org.richfaces.webapp.PushFilter.doFilter(PushFilter.java:130)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tritibo Luca Nardelli
                  Reporter:
                  jjamrich Ján Jamrich
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: