I thinkt the NullPointerException is a known problem of the CommandLinkRenderer. It works a bit different to the RI.
You already figured out the solution: put everything into a form.

As for the invalid bit mask: Sean already explained the problem in another post regarding tree2.

[EMAIL PROTECTED] schrieb am 19.08.2005 20:56:20:

> Hi,

> I was trying to test the compatibility of Tomahawk with Sun RI. All
> I did was replace the myfaces jars with Sun RI jars and comment out
> the SourceCodeServlet in the Web.xml. I have listed some issues I
> faced below. At this point, I'm still not sure if I'm want to take
> these components and integrate into our application as I'm unsure of
> their consistent behaviour. Probably, I may be wrong.

>  However, when I accessed the MasterDetail.jsp and tree2HideRoot.
> jsp, I got the following exception. Once they were enclosed in the
> form, they worked .

> java.lang.NullPointerException com.sun.faces.renderkit.html_basic.
> CommandLinkRenderer.getHiddenFieldName(CommandLinkRenderer.java:136)
> com.sun.faces.renderkit.html_basic.CommandLinkRenderer.
> encodeEnd(CommandLinkRenderer.java:318) javax.faces.component.
> UIComponentBase.encodeEnd(UIComponentBase.java:720) com.sun.faces.
> renderkit.html_basic.HtmlBasicRenderer.
> encodeRecursive(HtmlBasicRenderer.java:443) com.sun.faces.renderkit.
> html_basic.GridRenderer.encodeChildren(GridRenderer.java:233) javax.
> faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:
> 701) com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.
> encodeRecursive(HtmlBasicRenderer.java:435) com.sun.faces.renderkit.
> html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)

> However, I cldnt get the "+" and "-" sign working. When I set the
> clientSideToggle="false", I get

> org.apache.jasper.JasperException: Invalid bit mask of 6
>         org.apache.jasper.servlet.JspServletWrapper.
> service(JspServletWrapper.java:373)
>         org.apache.jasper.servlet.JspServlet.
> serviceJspFile(JspServlet.java:295)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         com.sun.faces.context.ExternalContextImpl.
> dispatch(ExternalContextImpl.java:322)
>         com.sun.faces.application.ViewHandlerImpl.
> renderView(ViewHandlerImpl.java:130)
>         com.sun.faces.lifecycle.RenderResponsePhase.
> execute(RenderResponsePhase.java:87)
>         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
>         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
>         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
>         org.apache.myfaces.component.html.util.ExtensionsFilter.
> doFilter(ExtensionsFilter.java:112)
> root cause
> java.lang.IllegalArgumentException: Invalid bit mask of 6
>         org.apache.myfaces.custom.tree2.HtmlTreeRenderer.
> encodeNavigation(HtmlTreeRenderer.java:445)
>         org.apache.myfaces.custom.tree2.HtmlTreeRenderer.
> encodeCurrentNode(HtmlTreeRenderer.java:334)
>         org.apache.myfaces.custom.tree2.HtmlTreeRenderer.
> encodeTree(HtmlTreeRenderer.java:236)
>         org.apache.myfaces.custom.tree2.HtmlTreeRenderer.
> encodeChildren(HtmlTreeRenderer.java:199)
>         javax.faces.component.UIComponentBase.
> encodeChildren(UIComponentBase.java:701)
>         javax.faces.webapp.UIComponentTag.
> encodeChildren(UIComponentTag.java:607)
>         javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)

>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended
> for the exclusive use of the addressee(s) and may contain
> confidential or privileged information. If
> you are not the intended recipient, please notify the sender at
> Wipro or [EMAIL PROTECTED] immediately
> and destroy all copies of this message and any attachments.

Reply via email to