Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1342

Can't add nested param tags to an h:output link

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • We are using facelets

    Description

      When we add a nested param tag to the an output link as shown below we get a stack trace on the page

      <h:outputLink value="BusinessObjectPropertySummary">
      <f:param name="buisnessObjectClass" value="#

      {businessObjectDetails.className}

      "/>
      <h:outputText value="#

      {businessObjectDetails.name}

      "/>
      </h:outputLink>

      java.lang.NullPointerException: charsetName
      at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:81)
      at java.net.URLEncoder.encode(URLEncoder.java:189)
      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.addParameterToHref(HtmlLinkRendererBase.java:428)
      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.addChildParametersToHref(HtmlLinkRendererBase.java:360)
      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:376)
      at org.apache.myfaces.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:95)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
      at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:441)
      at org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:427)
      at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:448)
      at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:206)
      at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java:168)
      at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:161)
      at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:154)
      at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:94)
      at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:57)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:234)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
      at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554)
      at com.peace.externalInteraction.web.jsf.PeaceFaceletViewHandler.renderView(PeaceFaceletViewHandler.java:62)
      at org.apache.myfaces.adfinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
      at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
      at com.peace.externalInteraction.web.OmniServlet.service(OmniServlet.java:78)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:320)
      at org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:289)
      at org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:213)
      at org.apache.myfaces.adf.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:90)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.peace.externalInteraction.web.jsf.ViewModeFilter.doFilter(ViewModeFilter.java:29)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              peace9 Peace Software
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: